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

Changeset 8ab2074 in mainline


Ignore:
Timestamp:
2010-03-02T22:43:20Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
92307f1
Parents:
11485d0c
Message:

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

File:
1 edited

Legend:

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

    r11485d0c r8ab2074  
    762762                fibril_rwlock_read_unlock( & socket_globals.lock );
    763763                fibril_condvar_wait( & socket->receive_signal, & socket->receive_lock );
     764                // drop the receive lock to avoid deadlock
     765                fibril_mutex_unlock( & socket->receive_lock );
    764766                fibril_rwlock_read_lock( & socket_globals.lock );
     767                fibril_mutex_lock( & socket->receive_lock );
    765768        }
    766769        -- socket->blocked;
Note: See TracChangeset for help on using the changeset viewer.