switch from boost::unique_lock to fc::unique_lock
This commit is contained in:
parent
b568936c5e
commit
34846bc059
1 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ namespace fc {
|
||||||
fc::context* n = 0;
|
fc::context* n = 0;
|
||||||
fc::context* cc = fc::thread::current().my->current;
|
fc::context* cc = fc::thread::current().my->current;
|
||||||
{
|
{
|
||||||
boost::unique_lock<fc::spin_yield_lock> lock(m_blist_lock);
|
fc::unique_lock<fc::spin_yield_lock> lock(m_blist_lock);
|
||||||
if( !m_blist ) {
|
if( !m_blist ) {
|
||||||
m_blist = cc;
|
m_blist = cc;
|
||||||
return;
|
return;
|
||||||
|
|
@ -151,7 +151,7 @@ namespace fc {
|
||||||
|
|
||||||
void mutex::unlock() {
|
void mutex::unlock() {
|
||||||
fc::context* next = 0;
|
fc::context* next = 0;
|
||||||
{ boost::unique_lock<fc::spin_yield_lock> lock(m_blist_lock);
|
{ fc::unique_lock<fc::spin_yield_lock> lock(m_blist_lock);
|
||||||
get_tail(m_blist, next);
|
get_tail(m_blist, next);
|
||||||
if( next ) {
|
if( next ) {
|
||||||
next->next_blocked = 0;
|
next->next_blocked = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue