shadow/shadow — Issue #31: Support running on Mac OS X
Author: robgjansen
Created: 2011-10-18 04:39:17+00:00
State: open
Labels: feature

Currently there are problems with the rt library (namely, it is not implemented on Mac). This means clock_gettime() will not work. Our filegetter uses this for file download timings. We can switch to using the g_timer_* functions from glib, which should provide cross platform support for us.

GLib prioritizes time lookups as follows, depending on whats available to the system:
clock_gettime(CLOCK_MONOTONIC) --> clock_gettime(CLOCK_REALTIME) --> gettimeofday(&, NULL)