aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gfx_osx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gos/gfx_osx.c')
-rw-r--r--src/gos/gfx_osx.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gos/gfx_osx.c b/src/gos/gfx_osx.c
index 50b06530..f2e58f77 100644
--- a/src/gos/gfx_osx.c
+++ b/src/gos/gfx_osx.c
@@ -30,7 +30,7 @@ void get_ticks(mach_timespec_t *mts){
clock_get_time(cclock, mts);
mach_port_deallocate(mach_task_self(), cclock);
-
+
}
void _gosInit(void)
@@ -89,16 +89,19 @@ void gfxSleepMicroseconds(delaytime_t ms) {
systemticks_t gfxSystemTicks(void) {
//struct timespec ts;
//clock_gettime(CLOCK_MONOTONIC, &ts);
-
+
mach_timespec_t ts;
get_ticks(&ts);
-
-
+
+
return ts.tv_sec * 1000UL + ts.tv_nsec / 1000UL;
}
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param) {
gfxThreadHandle th;
+ (void) stackarea;
+ (void) stacksz;
+ (void) prio;
// Implementing priority with pthreads is a rats nest that is also pthreads implementation dependent.
// Only some pthreads schedulers support it, some implementations use the operating system process priority mechanisms.