diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:15:15 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:15:15 +1000 |
commit | 93da5a0578e7f16ea846eb257f36a24e316ef8d4 (patch) | |
tree | b0e08e991919fdb1fa9079b0ea40c23909cbcd3e /src/gqueue | |
parent | 215f31ee3dd27f461540384cdba04b58b481fadc (diff) | |
download | uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.gz uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.bz2 uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.zip |
gDelayNone/gDelayForever to replace TIME_IMMEDIATE/TIME_INFINITE
Diffstat (limited to 'src/gqueue')
-rw-r--r-- | src/gqueue/gqueue.c | 2 | ||||
-rw-r--r-- | src/gqueue/gqueue.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gqueue/gqueue.c b/src/gqueue/gqueue.c index e761c238..77a7647b 100644 --- a/src/gqueue/gqueue.c +++ b/src/gqueue/gqueue.c @@ -297,7 +297,7 @@ void _gqueueDeinit(void) gfxSemInit(&pqueue->sem, 0, MAX_SEMAPHORE_COUNT); } void gfxQueueFSyncDeinit(gfxQueueGSync *pqueue) { - while(gfxQueueFSyncGet(pqueue, TIME_IMMEDIATE)); + while(gfxQueueFSyncGet(pqueue, gDelayNone)); pqueue->head = pqueue->tail = 0; gfxSemDestroy(&pqueue->sem); } diff --git a/src/gqueue/gqueue.h b/src/gqueue/gqueue.h index fa4a31e5..9cde670d 100644 --- a/src/gqueue/gqueue.h +++ b/src/gqueue/gqueue.h @@ -124,7 +124,7 @@ void gfxQueueFSyncDeinit(gfxQueueFSync *pqueue); * * @param[in] pqueue A pointer to the queue * @param[in] ms The maxmimum time to wait for an item. For ASync queues this parameter is - * not specified as TIME_IMMEDIATE is assumed. + * not specified as gDelayNone is assumed. * * @note The routines ending in "I" are interrupt/system/iclass level routines. * @@ -147,7 +147,7 @@ gfxQueueFSyncItem *gfxQueueFSyncGet(gfxQueueFSync *pqueue, gDelay ms); * @param[in] pitem A pointer to the queue item * @param[in] ms The maxmimum time to wait for an item to be removed from the queue (only for FSync queues) * - * @note FSync: Use a delay time of TIME_IMMEDIATE if you don't want to wait until the + * @note FSync: Use a delay time of gDelayNone if you don't want to wait until the * item is removed from the queue. Note that even if the timeout occurs - the item * remains in the queue. * @note The routines ending in "I" are interrupt/system/iclass level routines. @@ -185,7 +185,7 @@ gBool gfxQueueFSyncPut(gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gDelay m * @param[in] pitem A pointer to the queue item * @param[in] ms The maxmimum time to wait for an item to be popped (only for FSync queues) * - * @note FSync: Use a delay time of TIME_IMMEDIATE if you don't want to wait until the + * @note FSync: Use a delay time of gDelayNone if you don't want to wait until the * item is removed from the queue. Note that even if the timeout occurs - the item * remains in the queue. * @note The routines ending in "I" are interrupt/system/iclass level routines. @@ -211,7 +211,7 @@ gBool gfxQueueFSyncPush(gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gDelay * pafter can't be found in the queue, it puts the new item at the end of the queue. * @param[in] ms The maxmimum time to wait for an item to be removed from the queue (only for FSync queues) * - * @note FSync: Use a delay time of TIME_IMMEDIATE if you don't want to wait until the + * @note FSync: Use a delay time of gDelayNone if you don't want to wait until the * item is removed from the queue. Note that even if the timeout occurs - the item * remains in the queue. * @note The routines ending in "I" are interrupt/system/iclass level routines. |