* bsd_mutex.cc (_msleep): Simplify event creation. Revert change from
2004-08-24. It should be unnecessary now. * msg.cc (client_request_msg::serve): Release process critical section as early as possible. * sem.cc (client_request_sem::serve): Ditto. * shm.cc (client_request_shm::serve): Ditto. * process.cc: Use hold and release method calls instead of EnterCriticalSection/LeaveCriticalSection calls throughout. * process.h (_hold): Rename from hold. Take filename and linenumber parameter for logging. Define matching hold macro. (release): Ditto.
This commit is contained in:
@ -80,6 +80,8 @@ client_request_shm::serve (transport_layer_base *const conn,
|
||||
}
|
||||
/* Early revert_to_self since IPC code runs in kernel mode. */
|
||||
conn->revert_to_self ();
|
||||
/* sysv_shm.cc takes care of itself. */
|
||||
client->release ();
|
||||
thread td = { client, &_parameters.in.ipcblk, {0, 0} };
|
||||
int res;
|
||||
shmop_t shmop = _parameters.in.shmop; /* Get's overwritten otherwise. */
|
||||
@ -110,7 +112,6 @@ client_request_shm::serve (transport_layer_base *const conn,
|
||||
/* Allocated by the call to adjust_identity_info(). */
|
||||
if (_parameters.in.ipcblk.gidlist)
|
||||
free (_parameters.in.ipcblk.gidlist);
|
||||
client->release ();
|
||||
error_code (res);
|
||||
if (shmop == SHMOP_shmat)
|
||||
_parameters.out.ptr = td.td_retval[0];
|
||||
|
Reference in New Issue
Block a user