Lines Matching refs:ftx
216 static volatile unsigned int ftx; variable
317 ftx = 1; in test_wrbase()
318 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_wrbase()
319 while (ftx != 0) in test_wrbase()
320 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_wrbase()
337 while (ftx == 0) in threadproc()
338 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc()
339 if (ftx == 3) in threadproc()
342 if (ftx == 1) { in threadproc()
344 } else if (ftx == 2) { in threadproc()
356 ftx = 0; in threadproc()
357 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in threadproc()
403 ftx = 1; in set_gs_and_switch_to()
404 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in set_gs_and_switch_to()
405 while (ftx != 0) in set_gs_and_switch_to()
406 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in set_gs_and_switch_to()
429 ftx = 2; in test_unexpected_base()
430 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_unexpected_base()
431 while (ftx != 0) in test_unexpected_base()
432 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_unexpected_base()
583 ftx = 3; /* Kill the thread. */ in main()
584 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in main()