HomeSort by relevance Sort by last modified time
    Searched refs:sig_thread (Results 1 - 7 of 7) sorted by null

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/
2-1.c 14 * 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: attempt write lock\n")
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/
4-1.c 14 * 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: Error at pthread_rwlock_rdlock(), Error code=%d\n"
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
6-1.c 19 * 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: pthread_rwlock_timedlock returns %d\n", rc)
    [all...]
6-2.c 15 * 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, SIGUSR1) != 0)
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
6-1.c 19 * 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: pthread_rwlock_timedwrlock returns %d\n"
    [all...]
6-2.c 15 * 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, SIGUSR1) != 0)
    [all...]
  /external/ltp/testcases/kernel/io/disktest/
signals.c 129 pthread_t sig_thread; local
158 pthread_create(&sig_thread, NULL, sig_handler, NULL);

Completed in 150 milliseconds