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()
330 ftx = 1; in set_gs_and_switch_to()
331 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in set_gs_and_switch_to()
332 while (ftx != 0) in set_gs_and_switch_to()
333 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in set_gs_and_switch_to()
356 ftx = 2; in test_unexpected_base()
357 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_unexpected_base()
358 while (ftx != 0) in test_unexpected_base()
359 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_unexpected_base()
420 ftx = 3; /* Kill the thread. */ in main()
421 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in main()