diff options
author | davidxu <davidxu@FreeBSD.org> | 2012-03-21 07:12:52 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2012-03-21 07:12:52 +0000 |
commit | fd4cb16e863d0646f3495a0cc56ac84b12e50806 (patch) | |
tree | bd0a54e47144fc54f51b89accc01b6c7d2efc480 /lib/libc/string/wcsspn.c | |
parent | 6e96eb9cc7bd4de2fc5d2011547e4ffa46e703d1 (diff) | |
download | FreeBSD-src-fd4cb16e863d0646f3495a0cc56ac84b12e50806.zip FreeBSD-src-fd4cb16e863d0646f3495a0cc56ac84b12e50806.tar.gz |
Use version 2 of semaphore provided by kernel umtx code, now if there is
no waiters, we still increase and decrease count in user mode without
entering kernel, once there is a waiter, sem_post will enter kernel to
increase count and wake thread up, this is atomicy and allow us to
gracefully destroy semaphore after sem_wait returned.
Diffstat (limited to 'lib/libc/string/wcsspn.c')
0 files changed, 0 insertions, 0 deletions