Boost logo

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:;>

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at