|
Boost Users : |
Subject: Re: [Boost-users] shared_lock owner
From: shada (laf163_at_[hidden])
Date: 2014-04-09 09:59:06
yes, shared_mutex. thank lgor R.
Igor R <boost.lists_at_[hidden]>ÓÚ2014Äê4ÔÂ9ÈÕÐÇÆÚÈýдµÀ£º
> > did shared_lock has a member like visual c++ critical_section's owner? i
> use
> > shared_lock in a game server,
> > it has several hundred threads. if has owner, it more easy resolve
> deadlock.
>
>
>
> I guess you mean shared_mutex. No, it doesn't propagate such an
> information to its interface.
>
> (If your server is network-oriented, it's worth re-designing it to
> take an advantage of the Proactor pattern (using Boost.Asio) -- this
> way you'll get rid of most of these hundreds of threads, and most of
> those (unnecessary) multithreading issues will disappear.)
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden] <javascript:;>
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net