Lines Matching refs:ftx
216 static volatile unsigned int ftx; variable
318 ftx = 1; in test_wrbase()
319 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_wrbase()
320 while (ftx != 0) in test_wrbase()
321 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_wrbase()
338 while (ftx == 0) in threadproc()
339 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc()
340 if (ftx == 3) in threadproc()
343 if (ftx == 1) { in threadproc()
345 } else if (ftx == 2) { in threadproc()
357 ftx = 0; in threadproc()
358 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in threadproc()
404 ftx = 1; in set_gs_and_switch_to()
405 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in set_gs_and_switch_to()
406 while (ftx != 0) in set_gs_and_switch_to()
407 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in set_gs_and_switch_to()
438 ftx = 2; in test_unexpected_base()
439 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_unexpected_base()
440 while (ftx != 0) in test_unexpected_base()
441 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_unexpected_base()
677 ftx = 3; /* Kill the thread. */ in main()
678 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in main()