diff options
Diffstat (limited to 'lib/libpthread/thread/thr_aio_suspend.c')
-rw-r--r-- | lib/libpthread/thread/thr_aio_suspend.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_aio_suspend.c b/lib/libpthread/thread/thr_aio_suspend.c index 05a6c82..94eed27 100644 --- a/lib/libpthread/thread/thr_aio_suspend.c +++ b/lib/libpthread/thread/thr_aio_suspend.c @@ -39,12 +39,13 @@ int _aio_suspend(const struct aiocb * const iocbs[], int niocb, const struct timespec *timeout) { - int ret; + struct pthread *curthread = _get_curthread(); + int ret; - _thread_enter_cancellation_point(); + _thr_enter_cancellation_point(curthread); ret = __sys_aio_suspend(iocbs, niocb, timeout); - _thread_leave_cancellation_point(); + _thr_leave_cancellation_point(curthread); - return ret; + return (ret); } |