[zircon] fix to semaphore
In my original impl I somehow only test for kill signal any other signal will leave |count_| unbalanced and would cause threads to get stuck in ports even if a packet was posted. thanks to dje@ who found this bug. TEST: new kernel test added "k ut semaphore". This also runs in the bots in the "ut all" set. ZX-3284 #comment done Change-Id: Ica2395f37776e331a8a0da62b4a7170e60b39582
Showing
- zircon/kernel/object/BUILD.gn 1 addition, 0 deletionszircon/kernel/object/BUILD.gn
- zircon/kernel/object/include/object/semaphore.h 13 additions, 4 deletionszircon/kernel/object/include/object/semaphore.h
- zircon/kernel/object/semaphore.cpp 12 additions, 15 deletionszircon/kernel/object/semaphore.cpp
- zircon/kernel/object/semaphore_tests.cpp 105 additions, 0 deletionszircon/kernel/object/semaphore_tests.cpp
- zircon/kernel/tests/tests.h 1 addition, 1 deletionzircon/kernel/tests/tests.h
Loading
Please register or sign in to comment