Changeset 95838f1 in mainline for uspace/lib/c/generic/async/client.c
- Timestamp:
- 2018-06-25T21:45:15Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 38e3427
- Parents:
- 3679f51a
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 20:58:01)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 21:45:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/client.c
r3679f51a r95838f1 243 243 assert(arg); 244 244 245 futex_ down(&async_futex);245 futex_lock(&async_futex); 246 246 247 247 amsg_t *msg = (amsg_t *) arg; … … 268 268 } 269 269 270 futex_u p(&async_futex);270 futex_unlock(&async_futex); 271 271 } 272 272 … … 357 357 amsg_t *msg = (amsg_t *) amsgid; 358 358 359 futex_ down(&async_futex);359 futex_lock(&async_futex); 360 360 361 361 assert(!msg->forget); … … 363 363 364 364 if (msg->done) { 365 futex_u p(&async_futex);365 futex_unlock(&async_futex); 366 366 goto done; 367 367 } … … 403 403 amsg_t *msg = (amsg_t *) amsgid; 404 404 405 futex_ down(&async_futex);405 futex_lock(&async_futex); 406 406 407 407 assert(!msg->forget); … … 409 409 410 410 if (msg->done) { 411 futex_u p(&async_futex);411 futex_unlock(&async_futex); 412 412 goto done; 413 413 } … … 477 477 assert(!msg->destroyed); 478 478 479 futex_ down(&async_futex);479 futex_lock(&async_futex); 480 480 481 481 if (msg->done) { … … 486 486 } 487 487 488 futex_u p(&async_futex);488 futex_unlock(&async_futex); 489 489 } 490 490 … … 506 506 tv_add_diff(&awaiter.to_event.expires, timeout); 507 507 508 futex_ down(&async_futex);508 futex_lock(&async_futex); 509 509 510 510 async_insert_timeout(&awaiter);
Note:
See TracChangeset
for help on using the changeset viewer.