Changeset bd9e868 in mainline
- Timestamp:
- 2018-07-05T16:17:08Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- acf6b55
- Parents:
- 63d46341
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-05 16:01:00)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-05 16:17:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/client.c
r63d46341 rbd9e868 186 186 static void amsg_destroy(amsg_t *msg) 187 187 { 188 if (!msg) 189 return; 190 188 191 assert(!msg->destroyed); 189 192 msg->destroyed = true; … … 352 355 void async_wait_for(aid_t amsgid, errno_t *retval) 353 356 { 354 assert(amsgid); 357 if (amsgid == 0) { 358 if (retval) 359 *retval = ENOMEM; 360 return; 361 } 355 362 356 363 amsg_t *msg = (amsg_t *) amsgid; … … 397 404 errno_t async_wait_timeout(aid_t amsgid, errno_t *retval, suseconds_t timeout) 398 405 { 399 assert(amsgid); 406 if (amsgid == 0) { 407 if (retval) 408 *retval = ENOMEM; 409 return EOK; 410 } 400 411 401 412 amsg_t *msg = (amsg_t *) amsgid; … … 468 479 void async_forget(aid_t amsgid) 469 480 { 481 if (amsgid == 0) 482 return; 483 470 484 amsg_t *msg = (amsg_t *) amsgid; 471 485 472 assert(msg);473 486 assert(!msg->forget); 474 487 assert(!msg->destroyed);
Note:
See TracChangeset
for help on using the changeset viewer.