Changeset 8080262 in mainline for uspace/lib/c/generic/async/client.c
- Timestamp:
- 2018-07-30T18:55:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2965d18
- Parents:
- b4c8a7b
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-30 18:07:46)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-30 18:55:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/client.c
rb4c8a7b r8080262 122 122 #include "../private/fibril.h" 123 123 124 static FIBRIL_RMUTEX_INITIALIZE(message_mutex); 125 124 126 /** Naming service session */ 125 127 async_sess_t session_ns; … … 204 206 return; 205 207 206 f utex_lock(&async_futex);208 fibril_rmutex_lock(&message_mutex); 207 209 208 210 msg->retval = IPC_GET_RETVAL(*data); … … 220 222 } 221 223 222 f utex_unlock(&async_futex);224 fibril_rmutex_unlock(&message_mutex); 223 225 } 224 226 … … 390 392 assert(!msg->forget); 391 393 392 f utex_lock(&async_futex);394 fibril_rmutex_lock(&message_mutex); 393 395 394 396 if (msg->done) { … … 399 401 } 400 402 401 f utex_unlock(&async_futex);403 fibril_rmutex_unlock(&message_mutex); 402 404 } 403 405
Note:
See TracChangeset
for help on using the changeset viewer.