Lines Matching refs:ftx
173 static volatile unsigned int ftx; variable
271 while (ftx == 0) in threadproc()
272 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc()
273 if (ftx == 3) in threadproc()
276 if (ftx == 1) in threadproc()
278 else if (ftx == 2) in threadproc()
283 ftx = 0; in threadproc()
284 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in threadproc()
311 ftx = 1; in set_gs_and_switch_to()
312 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in set_gs_and_switch_to()
313 while (ftx != 0) in set_gs_and_switch_to()
314 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in set_gs_and_switch_to()
334 ftx = 2; in test_unexpected_base()
335 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_unexpected_base()
336 while (ftx != 0) in test_unexpected_base()
337 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_unexpected_base()
391 ftx = 3; /* Kill the thread. */ in main()
392 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in main()