Searched defs:sig_thread (Results 1 - 7 of 7) sorted by relevance

/external/ltp/testcases/kernel/io/disktest/
H A Dsignals.c129 pthread_t sig_thread; local
158 pthread_create(&sig_thread, NULL, sig_handler, NULL);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/
H A D4-1.c14 * 2. main thread create a thread sig_thread, the thread is set to handle SIGUSR1
15 * 3. sig_thread try to lock 'rwlock' for reading but will block
16 * 4. main thread sends SIGUSR1 to sig_thread via pthread_kill
18 * 6. check that when thread handler returns, sig_thread resumes blocking for rwlock
19 * 7. main thread unlock 'rwlock', sig_thread should get the lock
31 static pthread_t sig_thread; variable
49 if (pthread_equal(pthread_self(), sig_thread)) {
53 printf("signal is not handled by sig_thread\n");
70 printf("sig_thread: attemp read lock\n");
74 ("Test FAILED: sig_thread
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/
H A D2-1.c14 * 2. main thread create a thread sig_thread, the thread is set to handle SIGUSR1
15 * 3. sig_thread try to lock 'rwlock' for writing but blocked
16 * 4. main thread send SIGUSR1 to sig_thread via pthread_kill, while sig_thread is blocking
18 * 6. check that when thread handler returns, sig_thread resume block
19 * 7. main thread unlock 'rwlock', sig_thread should get the lock
31 static pthread_t sig_thread; variable
49 if (pthread_equal(pthread_self(), sig_thread)) {
53 printf("signal was not handled by sig_thread\n");
71 printf("sig_thread
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
H A D6-1.c19 * 2. main thread create a thread sig_thread, the thread is set to handle SIGUSR1
20 * 3. sig_thread timed read-lock 'rwlock' for reading, it should block
21 * 4. While the sig_thread is waiting (not expired yet), main thread sends SIGUSR1
22 * to sig_thread via pthread_kill
23 * 5. Check that when thread handler returns, sig_thread resume block
40 static pthread_t sig_thread; variable
63 if (pthread_equal(pthread_self(), sig_thread)) {
64 printf("sig_handler: signal is handled by sig_thread\n");
68 printf("sig_handler: signal is not handled by sig_thread\n");
98 printf("sig_thread
[all...]
H A D6-2.c15 * 2. main thread create a thread sig_thread, the thread is set to handle SIGUSR1
16 * 3. sig_thread timed lock 'rwlock' for reading, but blocked
17 * 4. While the sig_thread is waiting(not expried yet), main thread send SIGUSR1
18 * to sig_thread via pthread_kill
22 * 6. While sig_thread sleeping in signal handler, main thread unlock 'rwlock'
23 * 7. check that when thread handler returns, sig_thread get the read lock without
50 static pthread_t sig_thread; variable
66 if (pthread_equal(pthread_self(), sig_thread)) {
141 if (pthread_create(&sig_thread, NULL, th_fn, NULL) != 0) {
158 if (pthread_kill(sig_thread, SIGUSR
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
H A D6-1.c19 * 2. main thread create a thread sig_thread, the thread is set to handle SIGUSR1
20 * 3. sig_thread timed write-lock 'rwlock' for writing, it should block
21 * 4. While the sig_thread is waiting (not expired yet), main thread sends SIGUSR1
22 * to sig_thread via pthread_kill
23 * 5. Check that when thread handler returns, sig_thread resume block
40 static pthread_t sig_thread; variable
63 if (pthread_equal(pthread_self(), sig_thread)) {
64 printf("sig_handler: signal is handled by sig_thread\n");
68 printf("sig_handler: signal is not handled by sig_thread\n");
97 printf("sig_thread
[all...]
H A D6-2.c15 * 2. main thread create a thread sig_thread, the thread is set to handle SIGUSR1
16 * 3. sig_thread timed lock 'rwlock' for writing, but blocked
17 * 4. While the sig_thread is waiting(not expried yet), main thread send SIGUSR1
18 * to sig_thread via pthread_kill
22 * 6. While sig_thread sleeping in signal handler, main thread unlock 'rwlock'
23 * 7. check that when thread handler returns, sig_thread get the read lock without
50 static pthread_t sig_thread; variable
66 if (pthread_equal(pthread_self(), sig_thread)) {
141 if (pthread_create(&sig_thread, NULL, th_fn, NULL) != 0) {
158 if (pthread_kill(sig_thread, SIGUSR
[all...]

Completed in 558 milliseconds