diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-06 15:54:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-06 15:54:00 -0600 |
commit | bf716b0de41711c320cacd3d38c1911657809926 (patch) | |
tree | 8f332e0368cf9c6460e0a7d40e81121f7b5cb683 /nuttx/fs/aio/aio.h | |
parent | f4555180b5847b4ee4b93c8d06f6741980a26128 (diff) | |
download | px4-nuttx-bf716b0de41711c320cacd3d38c1911657809926.tar.gz px4-nuttx-bf716b0de41711c320cacd3d38c1911657809926.tar.bz2 px4-nuttx-bf716b0de41711c320cacd3d38c1911657809926.zip |
Fix some cornercase locking issues; make AIO lock re-entrant
Diffstat (limited to 'nuttx/fs/aio/aio.h')
-rw-r--r-- | nuttx/fs/aio/aio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/fs/aio/aio.h b/nuttx/fs/aio/aio.h index ea6be2c86..54bfe03e1 100644 --- a/nuttx/fs/aio/aio.h +++ b/nuttx/fs/aio/aio.h @@ -122,7 +122,9 @@ void aio_initialize(void); * Name: aio_lock/aio_unlock * * Description: - * Take/give the lock on the pending asynchronous I/O list + * Take/give the lock on the pending asynchronous I/O list. These locks + * are implemented with re-entrant semaphores -- deadlocks will not occur + * if the lock is taken multiple times on the same thread. * * Input Parameters: * None |