aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil/osal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-14 11:01:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-14 11:01:51 +0000
commit1b6619e5ccd8ee5a28968c5e703b334ce3738d7a (patch)
tree7304c7a7fdfceab91d1982e108614bba5988f232 /os/nil/osal
parentca00f534f71568901028a117860d2d8dd5bfa29f (diff)
downloadChibiOS-1b6619e5ccd8ee5a28968c5e703b334ce3738d7a.tar.gz
ChibiOS-1b6619e5ccd8ee5a28968c5e703b334ce3738d7a.tar.bz2
ChibiOS-1b6619e5ccd8ee5a28968c5e703b334ce3738d7a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6474 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil/osal')
-rw-r--r--os/nil/osal/osal.c4
-rw-r--r--os/nil/osal/osal.h10
2 files changed, 7 insertions, 7 deletions
diff --git a/os/nil/osal/osal.c b/os/nil/osal/osal.c
index 05443d465..564ee369d 100644
--- a/os/nil/osal/osal.c
+++ b/os/nil/osal/osal.c
@@ -60,7 +60,7 @@
*
* @iclass
*/
-void osalQueueWakeupOneI(threads_queue_t *tqp, msg_t msg) {
+void osalThreadDequeueNextI(threads_queue_t *tqp, msg_t msg) {
semaphore_t *sp = &tqp->sem;
if (chSemGetCounterI(&tqp->sem) < 0) {
@@ -90,7 +90,7 @@ void osalQueueWakeupOneI(threads_queue_t *tqp, msg_t msg) {
*
* @iclass
*/
-void osalQueueWakeupAllI(threads_queue_t *tqp, msg_t msg) {
+void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg) {
semaphore_t *sp = &tqp->sem;
thread_reference_t tr;
cnt_t cnt;
diff --git a/os/nil/osal/osal.h b/os/nil/osal/osal.h
index 93483e6f0..2c0980ead 100644
--- a/os/nil/osal/osal.h
+++ b/os/nil/osal/osal.h
@@ -347,8 +347,8 @@ typedef struct {
#ifdef __cplusplus
extern "C" {
#endif
- void osalQueueWakeupOneI(threads_queue_t *tqp, msg_t msg);
- void osalQueueWakeupAllI(threads_queue_t *tqp, msg_t msg);
+ void osalThreadDequeueNextI(threads_queue_t *tqp, msg_t msg);
+ void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg);
#ifdef __cplusplus
}
#endif
@@ -647,7 +647,7 @@ static inline void osalThreadResumeS(thread_reference_t *trp, msg_t msg) {
*
* @init
*/
-static inline void osalQueueObjectInit(threads_queue_t *tqp) {
+static inline void osalThreadQueueObjectInit(threads_queue_t *tqp) {
chSemObjectInit(&tqp->sem, 0);
}
@@ -675,8 +675,8 @@ static inline void osalQueueObjectInit(threads_queue_t *tqp) {
*
* @sclass
*/
-static inline msg_t osalQueueGoSleepTimeoutS(threads_queue_t *tqp,
- systime_t time) {
+static inline msg_t osalThreadEnqueueTimeoutS(threads_queue_t *tqp,
+ systime_t time) {
return chSemWaitTimeout(&tqp->sem, time);
}