whitespaces
This commit is contained in:
parent
daf881428e
commit
5ea2cb9f8d
2 changed files with 7 additions and 4 deletions
|
@ -74,7 +74,7 @@ typedef int threadpriority_t;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
semcount_t cnt;
|
semcount_t cnt;
|
||||||
semcount_t limit;
|
semcount_t limit;
|
||||||
} gfxSem;
|
} gfxSem;
|
||||||
|
|
||||||
typedef uint32_t gfxMutex;
|
typedef uint32_t gfxMutex;
|
||||||
typedef void * gfxThreadHandle;
|
typedef void * gfxThreadHandle;
|
||||||
|
@ -122,3 +122,4 @@ extern "C" {
|
||||||
|
|
||||||
#endif /* GFX_USE_OS_RAW32 */
|
#endif /* GFX_USE_OS_RAW32 */
|
||||||
#endif /* _GOS_RAW32_H */
|
#endif /* _GOS_RAW32_H */
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
#include <string.h> // Prototype for memcpy()
|
#include <string.h> // Prototype for memcpy()
|
||||||
|
|
||||||
|
|
||||||
#if GOS_RAW_HEAP_SIZE != 0
|
#if GOS_RAW_HEAP_SIZE != 0
|
||||||
static void _gosHeapInit(void);
|
static void _gosHeapInit(void);
|
||||||
#else
|
#else
|
||||||
|
@ -138,6 +137,7 @@ void gfxExit(void) {
|
||||||
lastSlot->sz = sz;
|
lastSlot->sz = sz;
|
||||||
NextFree(lastSlot) = 0;
|
NextFree(lastSlot) = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *gfxAlloc(size_t sz) {
|
void *gfxAlloc(size_t sz) {
|
||||||
register memslot *prev, *p, *new;
|
register memslot *prev, *p, *new;
|
||||||
|
|
||||||
|
@ -270,6 +270,7 @@ void gfxExit(void) {
|
||||||
void gfxSystemLock(void) {
|
void gfxSystemLock(void) {
|
||||||
INTERRUPTS_OFF();
|
INTERRUPTS_OFF();
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfxSystemUnlock(void) {
|
void gfxSystemUnlock(void) {
|
||||||
INTERRUPTS_ON();
|
INTERRUPTS_ON();
|
||||||
}
|
}
|
||||||
|
@ -454,12 +455,12 @@ typedef struct thread {
|
||||||
void * param; // Parameter for the thread function
|
void * param; // Parameter for the thread function
|
||||||
jmp_buf cxt; // The current thread context.
|
jmp_buf cxt; // The current thread context.
|
||||||
// size - sizeof(thread) bytes of stack follow here
|
// size - sizeof(thread) bytes of stack follow here
|
||||||
} thread;
|
} thread;
|
||||||
|
|
||||||
typedef struct threadQ {
|
typedef struct threadQ {
|
||||||
thread *head;
|
thread *head;
|
||||||
thread *tail;
|
thread *tail;
|
||||||
} threadQ;
|
} threadQ;
|
||||||
|
|
||||||
static threadQ readyQ; // The list of ready threads
|
static threadQ readyQ; // The list of ready threads
|
||||||
static threadQ deadQ; // Where we put threads waiting to be deallocated
|
static threadQ deadQ; // Where we put threads waiting to be deallocated
|
||||||
|
@ -740,3 +741,4 @@ threadreturn_t gfxThreadWait(gfxThreadHandle th) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* GFX_USE_OS_RAW32 */
|
#endif /* GFX_USE_OS_RAW32 */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue