Changeset 5f97ef44 in mainline for uspace/app
- 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)
- Location:
- uspace/app
- Files:
-
- 8 edited
-
bdsh/cmds/modules/sleep/sleep.c (modified) (1 diff)
-
mkbd/main.c (modified) (1 diff)
-
rcutest/rcutest.c (modified) (12 diffs)
-
tester/stdio/logger2.c (modified) (1 diff)
-
vuhid/life.c (modified) (1 diff)
-
wavplay/dplay.c (modified) (1 diff)
-
wavplay/drec.c (modified) (1 diff)
-
wavplay/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/sleep/sleep.c
r9912f49 r5f97ef44 132 132 } 133 133 134 async_usleep(duration);134 fibril_usleep(duration); 135 135 136 136 return CMD_SUCCESS; -
uspace/app/mkbd/main.c
r9912f49 r5f97ef44 295 295 } 296 296 297 async_usleep(10000);297 fibril_usleep(10000); 298 298 } 299 299 -
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 -
uspace/app/tester/stdio/logger2.c
r9912f49 r5f97ef44 56 56 "Printing level %d (%s) into bravo sub-log.", 57 57 (int) level, log_level_str(level)); 58 async_usleep(1000 * 100);58 fibril_usleep(1000 * 100); 59 59 } 60 60 } -
uspace/app/vuhid/life.c
r9912f49 r5f97ef44 44 44 data->data_in_pos = 0; 45 45 data->data_in_last_pos = (size_t) -1; 46 async_usleep(1000 * 1000 * 5);46 fibril_usleep(1000 * 1000 * 5); 47 47 usb_log_debug("%s", data->msg_born); 48 48 while (data->data_in_pos < data->data_in_count) { 49 async_usleep(1000 * data->data_in_pos_change_delay);49 fibril_usleep(1000 * data->data_in_pos_change_delay); 50 50 // FIXME: proper locking 51 51 data->data_in_pos++; -
uspace/app/wavplay/dplay.c
r9912f49 r5f97ef44 312 312 pos, usecs, real_delay, to_play); 313 313 if (real_delay) 314 async_usleep(real_delay);314 fibril_usleep(real_delay); 315 315 /* update buffer position */ 316 316 const errno_t ret = audio_pcm_get_buffer_pos(pb->device, &pos); -
uspace/app/wavplay/drec.c
r9912f49 r5f97ef44 167 167 /* XXX Control returns even before we can be sure callbacks finished */ 168 168 printf("Delay before playback termination\n"); 169 async_usleep(1000000);169 fibril_usleep(1000000); 170 170 printf("Terminate playback\n"); 171 171 } -
uspace/app/wavplay/main.c
r9912f49 r5f97ef44 341 341 /* Wait for all fibrils to finish */ 342 342 while (atomic_get(&playcount) > 0) 343 async_usleep(1000000);343 fibril_usleep(1000000); 344 344 345 345 /* Destroy parallel playback context, if initialized */
Note:
See TracChangeset
for help on using the changeset viewer.
