Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 11485d0c in mainline


Ignore:
Timestamp:
2010-03-02T22:40:47Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
8ab2074
Parents:
43ed4f3
Message:

Drop accept lock before and regain after reattempting socket_globals.lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/socket/socket_client.c

    r43ed4f3 r11485d0c  
    560560                fibril_rwlock_write_unlock( & socket_globals.lock );
    561561                fibril_condvar_wait( & socket->accept_signal, & socket->accept_lock );
     562                // drop the accept lock to avoid deadlock
     563                fibril_mutex_unlock( & socket->accept_lock );
    562564                fibril_rwlock_write_lock( & socket_globals.lock );
     565                fibril_mutex_lock( & socket->accept_lock );
    563566        }
    564567        -- socket->blocked;
Note: See TracChangeset for help on using the changeset viewer.