Lines Matching refs:semaphore

18 // Get semaphore for parent
21 echo "P: failed to parent get semaphore.\n";
25 echo "P: got semaphore.\n";
27 // Get semaphore for child
30 echo "P: failed to child get semaphore.\n";
35 // Acquire semaphore for parent
37 echo "P: fail to acquire semaphore.\n";
41 echo "P: acquired semaphore.\n";
43 // Acquire semaphore for child
45 echo "P: failed to acquire semaphore.\n";
49 echo "P: acquired semaphore.\n";
56 echo "P: removing semaphore.\n";
60 // Release semaphore after 50ms
63 /* Wait for the child semaphore to be released to
64 to release the parent semaphore */
66 echo "P: failed to acquire semaphore.\n";
71 the releasing the parent semaphore and letting
75 echo "P: releasing semaphore.\n";
77 echo "P: failed to release semaphore.\n";
86 echo "C: removing semaphore.\n";
92 // Have the semaphore after process forked
95 // This should fail to get to the semaphore and not wait
97 echo "C: test failed, Child was able to acquire semaphore.\n";
101 // The child process did not wait to acquire the semaphore
102 echo "C: failed to acquire semaphore.\n";
104 echo "C: releasing semaphore.\n";
106 echo "C: failed to release semaphore.\n";
109 // Acquire semaphore with waiting
111 echo "C: fail to acquire semaphore.\n";
114 echo "C: success acquired semaphore.\n";
116 echo "C: releasing semaphore.\n";
123 P: got semaphore.
124 P: acquired semaphore.
125 P: acquired semaphore.
128 C: failed to acquire semaphore.
129 C: releasing semaphore.
130 P: releasing semaphore.
131 C: success acquired semaphore.
132 C: releasing semaphore.
133 C: removing semaphore.
134 P: removing semaphore.