diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-03-07 08:28:07 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-03-07 08:28:07 +0000 |
commit | 13fd270405b6f9fe2655df371b11bcae8b976c95 (patch) | |
tree | 32dd7b6f4eeded9a164d22570f864d7b56c28e9b /lib/librt/aio.c | |
parent | 712c56267911abd53a3e221fadce4ee9523011d3 (diff) | |
download | FreeBSD-src-13fd270405b6f9fe2655df371b11bcae8b976c95.zip FreeBSD-src-13fd270405b6f9fe2655df371b11bcae8b976c95.tar.gz |
1. Always call user callback function in newly created thread, it seems
POSIX implies that the user callback function must be executed in clean
environment.
2. Use newly introduced pthread stubs in libc.
Diffstat (limited to 'lib/librt/aio.c')
-rw-r--r-- | lib/librt/aio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/librt/aio.c b/lib/librt/aio.c index 559e894..23f14bc 100644 --- a/lib/librt/aio.c +++ b/lib/librt/aio.c @@ -34,10 +34,8 @@ #include "namespace.h" #include <errno.h> -#include <pthread.h> #include <stddef.h> #include <signal.h> -#include <unistd.h> #include "sigev_thread.h" #include "un-namespace.h" @@ -92,7 +90,6 @@ aio_io(struct aiocb *iocb, int (*sysfunc)(struct aiocb *iocb)) saved_ev = iocb->aio_sigevent; sn->sn_id = (sigev_id_t)iocb; - sn->sn_flags |= SNF_ONESHOT; __sigev_get_sigevent(sn, &iocb->aio_sigevent, sn->sn_id); __sigev_list_lock(); |