Changeset 5f97ef44 in mainline for uspace/app/rcutest/rcutest.c
- Timestamp:
- 2018-07-13T14:10:15Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3787a0
- Parents:
- 9912f49
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:08:57)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:10:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/rcutest/rcutest.c
r9912f49 r5f97ef44 321 321 printf("r-sleep{"); 322 322 /* 2 sec */ 323 async_usleep(2 * USECS_PER_SEC);323 fibril_usleep(2 * USECS_PER_SEC); 324 324 ++arg->done_sleeps_cnt; 325 325 printf("}"); … … 346 346 347 347 /* 1 sec, waits for the reader to enter its critical section and sleep. */ 348 async_usleep(1 * USECS_PER_SEC);348 fibril_usleep(1 * USECS_PER_SEC); 349 349 350 350 if (!info.entered_cs || info.exited_cs) { … … 369 369 */ 370 370 /* 1.5 sec */ 371 async_usleep(1500 * 1000);371 fibril_usleep(1500 * 1000); 372 372 return false; 373 373 } else { … … 402 402 /* Wait for rcu_sync() to start waiting for us. */ 403 403 while (!arg->synching) { 404 async_usleep(WAIT_STEP_US);404 fibril_usleep(WAIT_STEP_US); 405 405 } 406 406 printf(" }"); … … 411 411 /* Wait for the new reader to enter its reader section. */ 412 412 while (!arg->new_entered_cs) { 413 async_usleep(WAIT_STEP_US);413 fibril_usleep(WAIT_STEP_US); 414 414 } 415 415 printf(" }"); … … 437 437 /* Wait until rcu_sync() starts. */ 438 438 while (!arg->synching) { 439 async_usleep(WAIT_STEP_US);439 fibril_usleep(WAIT_STEP_US); 440 440 } 441 441 … … 444 444 * some more to make sure it really does start executing. 445 445 */ 446 async_usleep(WAIT_STEP_US);446 fibril_usleep(WAIT_STEP_US); 447 447 448 448 printf("new-lock("); … … 452 452 /* Wait for rcu_sync() exit, ie stop waiting for the preexisting reader. */ 453 453 while (!arg->synched) { 454 async_usleep(WAIT_STEP_US);454 fibril_usleep(WAIT_STEP_US); 455 455 } 456 456 … … 487 487 /* Waits for the preexisting_reader to enter its CS.*/ 488 488 while (!info.old_entered_cs) { 489 async_usleep(WAIT_STEP_US);489 fibril_usleep(WAIT_STEP_US); 490 490 } 491 491 … … 533 533 * are using it. 534 534 */ 535 async_usleep(WAIT_STEP_US);535 fibril_usleep(WAIT_STEP_US); 536 536 } 537 537 … … 565 565 /* Wait for rcu_sync() to start waiting for us. */ 566 566 while (!arg->synching) { 567 async_usleep(WAIT_STEP_US);567 fibril_usleep(WAIT_STEP_US); 568 568 } 569 569 printf(" }"); … … 591 591 /* Waits for the preexisting_reader to enter its CS.*/ 592 592 while (!info.entered_cs) { 593 async_usleep(WAIT_STEP_US);593 fibril_usleep(WAIT_STEP_US); 594 594 } 595 595
Note:
See TracChangeset
for help on using the changeset viewer.