Changeset 936835e in mainline for uspace/srv/net/socket/socket_client.c
- Timestamp:
- 2010-03-07T15:35:32Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 836dd794
- Parents:
- aadf01e (diff), b5cbff4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/socket/socket_client.c
raadf01e r936835e 580 580 fibril_rwlock_write_unlock(&socket_globals.lock); 581 581 fibril_condvar_wait(&socket->accept_signal, &socket->accept_lock); 582 // drop the accept lock to avoid deadlock 583 fibril_mutex_unlock(&socket->accept_lock); 582 584 fibril_rwlock_write_lock(&socket_globals.lock); 585 fibril_mutex_lock(&socket->accept_lock); 583 586 } 584 587 -- socket->blocked; … … 801 804 fibril_rwlock_read_unlock(&socket_globals.lock); 802 805 fibril_condvar_wait(&socket->receive_signal, &socket->receive_lock); 806 // drop the receive lock to avoid deadlock 807 fibril_mutex_unlock(&socket->receive_lock); 803 808 fibril_rwlock_read_lock(&socket_globals.lock); 809 fibril_mutex_lock(&socket->receive_lock); 804 810 } 805 811 -- socket->blocked;
Note:
See TracChangeset
for help on using the changeset viewer.