diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-03-14 07:38:02 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-03-14 07:38:02 +1000 |
commit | 6f54bde79c553301a35535a0a71a4a09b181abfa (patch) | |
tree | 1408ad80459cd09da47960b4905d50195916639d /src/gos/sys_defs.h | |
parent | 6d372f13528f44919ec193d03248d55a53484968 (diff) | |
parent | ea5a1b849df6e5085a92957ad387f9e653674415 (diff) | |
download | uGFX-6f54bde79c553301a35535a0a71a4a09b181abfa.tar.gz uGFX-6f54bde79c553301a35535a0a71a4a09b181abfa.tar.bz2 uGFX-6f54bde79c553301a35535a0a71a4a09b181abfa.zip |
Merge branch 'master' into freertos
Diffstat (limited to 'src/gos/sys_defs.h')
-rw-r--r-- | src/gos/sys_defs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gos/sys_defs.h b/src/gos/sys_defs.h index b86d6d6a..4014e791 100644 --- a/src/gos/sys_defs.h +++ b/src/gos/sys_defs.h @@ -328,6 +328,19 @@ bool_t gfxSemWait(gfxSem *psem, delaytime_t ms); /** + * @brief Test if a wait on a semaphore can be satisfied immediately + * @details Equivalent to @p gfxSemWait(psem, TIME_IMMEDIATE) except it can be called at interrupt level + * @return FALSE if the wait would occur occurred otherwise TRUE + * + * @param[in] psem A pointer to the semaphore + * @param[in] ms The maximum time to wait for the semaphore + * + * @iclass + * @api + */ + bool_t gfxSemWaitI(gfxSem *psem); + + /** * @brief Signal a semaphore * @details The semaphore counter is increased and if the result is non-positive then a waiting thread * is queued for execution. Note that once the thread reaches "limit", further signals are |