aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/sys_defs.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-03-11 17:10:11 +1000
committerinmarket <andrewh@inmarket.com.au>2014-03-11 17:10:11 +1000
commita29501c7bda2212417e1df4b255690bd7fb61ad2 (patch)
tree1ea78734b0beb6f97b78e2e38443ee1bbe125e45 /src/gos/sys_defs.h
parentc70d98ef59bddda73cd4d97142a98f1513d11947 (diff)
downloaduGFX-a29501c7bda2212417e1df4b255690bd7fb61ad2.tar.gz
uGFX-a29501c7bda2212417e1df4b255690bd7fb61ad2.tar.bz2
uGFX-a29501c7bda2212417e1df4b255690bd7fb61ad2.zip
Add support for gfxSemWaitI() GOS api.
Diffstat (limited to 'src/gos/sys_defs.h')
-rw-r--r--src/gos/sys_defs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gos/sys_defs.h b/src/gos/sys_defs.h
index b913fb66..f10ddd62 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