Better definitions for null functions in the GOS layer
This commit is contained in:
parent
9a5a480870
commit
6a2fc9a647
3 changed files with 4 additions and 4 deletions
|
@ -73,7 +73,7 @@ extern "C" {
|
||||||
#define gfxSystemLock() chSysLock()
|
#define gfxSystemLock() chSysLock()
|
||||||
#define gfxSystemUnlock() chSysUnlock()
|
#define gfxSystemUnlock() chSysUnlock()
|
||||||
#define gfxMutexInit(pmutex) chMtxInit(pmutex)
|
#define gfxMutexInit(pmutex) chMtxInit(pmutex)
|
||||||
#define gfxMutexDestroy(pmutex) {}
|
#define gfxMutexDestroy(pmutex) (void)pmutex
|
||||||
#define gfxMutexEnter(pmutex) chMtxLock(pmutex)
|
#define gfxMutexEnter(pmutex) chMtxLock(pmutex)
|
||||||
#define gfxMutexExit(pmutex) chMtxUnlock()
|
#define gfxMutexExit(pmutex) chMtxUnlock()
|
||||||
void *gfxRealloc(void *ptr, size_t oldsz, size_t newsz);
|
void *gfxRealloc(void *ptr, size_t oldsz, size_t newsz);
|
||||||
|
@ -89,7 +89,7 @@ void gfxSemSignalI(gfxSem *psem);
|
||||||
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param);
|
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param);
|
||||||
#define gfxThreadWait(thread) chThdWait(thread)
|
#define gfxThreadWait(thread) chThdWait(thread)
|
||||||
#define gfxThreadMe() chThdSelf()
|
#define gfxThreadMe() chThdSelf()
|
||||||
#define gfxThreadClose(thread) {}
|
#define gfxThreadClose(thread) (void)thread
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ typedef pthread_mutex_t gfxMutex;
|
||||||
#define gfxMillisecondsToTicks(ms) (ms)
|
#define gfxMillisecondsToTicks(ms) (ms)
|
||||||
#define gfxYield() pthread_yield()
|
#define gfxYield() pthread_yield()
|
||||||
#define gfxThreadMe() pthread_self()
|
#define gfxThreadMe() pthread_self()
|
||||||
#define gfxThreadClose(th) {}
|
#define gfxThreadClose(th) (void)th
|
||||||
#define gfxMutexInit(pmtx) pthread_mutex_init(pmtx, 0)
|
#define gfxMutexInit(pmtx) pthread_mutex_init(pmtx, 0)
|
||||||
#define gfxMutexDestroy(pmtx) pthread_mutex_destroy(pmtx)
|
#define gfxMutexDestroy(pmtx) pthread_mutex_destroy(pmtx)
|
||||||
#define gfxMutexEnter(pmtx) pthread_mutex_lock(pmtx)
|
#define gfxMutexEnter(pmtx) pthread_mutex_lock(pmtx)
|
||||||
|
|
|
@ -40,7 +40,7 @@ typedef pthread_mutex_t gfxMutex;
|
||||||
#define gfxMillisecondsToTicks(ms) (ms)
|
#define gfxMillisecondsToTicks(ms) (ms)
|
||||||
#define gfxYield() sched_yield()
|
#define gfxYield() sched_yield()
|
||||||
#define gfxThreadMe() pthread_self()
|
#define gfxThreadMe() pthread_self()
|
||||||
#define gfxThreadClose(th) {}
|
#define gfxThreadClose(th) (void)th
|
||||||
#define gfxMutexInit(pmtx) pthread_mutex_init(pmtx, 0)
|
#define gfxMutexInit(pmtx) pthread_mutex_init(pmtx, 0)
|
||||||
#define gfxMutexDestroy(pmtx) pthread_mutex_destroy(pmtx)
|
#define gfxMutexDestroy(pmtx) pthread_mutex_destroy(pmtx)
|
||||||
#define gfxMutexEnter(pmtx) pthread_mutex_lock(pmtx)
|
#define gfxMutexEnter(pmtx) pthread_mutex_lock(pmtx)
|
||||||
|
|
Loading…
Add table
Reference in a new issue