Changeset 8d6d76a in mainline for test/synch
- Timestamp:
- 2006-06-08T08:30:42Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4bc141c
- Parents:
- 616f1759
- Location:
- test/synch
- Files:
-
- 6 edited
-
rwlock2/test.c (modified) (1 diff)
-
rwlock3/test.c (modified) (1 diff)
-
rwlock4/test.c (modified) (2 diffs)
-
rwlock5/test.c (modified) (2 diffs)
-
semaphore1/test.c (modified) (2 diffs)
-
semaphore2/test.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/synch/rwlock2/test.c
r616f1759 r8d6d76a 45 45 void writer(void *arg) 46 46 { 47 48 thread_detach(THREAD); 49 47 50 printf("Trying to lock rwlock for writing....\n"); 48 51 -
test/synch/rwlock3/test.c
r616f1759 r8d6d76a 45 45 void reader(void *arg) 46 46 { 47 thread_detach(THREAD); 48 47 49 printf("cpu%d, tid %d: trying to lock rwlock for reading....\n", CPU->id, THREAD->tid); 48 50 rwlock_read_lock(&rwlock); -
test/synch/rwlock4/test.c
r616f1759 r8d6d76a 74 74 { 75 75 int rc, to; 76 thread_detach(THREAD); 76 77 waitq_sleep(&can_start); 77 78 … … 96 97 { 97 98 int rc, to; 99 thread_detach(THREAD); 98 100 waitq_sleep(&can_start); 99 101 -
test/synch/rwlock5/test.c
r616f1759 r8d6d76a 51 51 void writer(void *arg) 52 52 { 53 thread_detach(THREAD); 54 53 55 waitq_sleep(&can_start); 54 56 … … 60 62 void reader(void *arg) 61 63 { 64 thread_detach(THREAD); 65 62 66 waitq_sleep(&can_start); 63 67 -
test/synch/semaphore1/test.c
r616f1759 r8d6d76a 52 52 void producer(void *arg) 53 53 { 54 thread_detach(THREAD); 55 54 56 waitq_sleep(&can_start); 55 57 … … 62 64 void consumer(void *arg) 63 65 { 66 thread_detach(THREAD); 67 64 68 waitq_sleep(&can_start); 65 69 -
test/synch/semaphore2/test.c
r616f1759 r8d6d76a 68 68 { 69 69 int rc, to; 70 71 thread_detach(THREAD); 72 70 73 waitq_sleep(&can_start); 71 74
Note:
See TracChangeset
for help on using the changeset viewer.
