goto init;
}
- mono_clock_init (sampling_clock);
+ mono_clock_init (&sampling_clock);
clock_init_for_profiler (mode);
for (guint64 sleep = mono_clock_get_time_ns (sampling_clock); mono_atomic_load_i32 (&sampling_thread_running); clock_sleep_ns_abs (sleep)) {
#if defined(HOST_DARWIN)
void
-mono_clock_init (mono_clock_id_t clk_id)
+mono_clock_init (mono_clock_id_t *clk_id)
{
kern_return_t ret;
do {
- ret = host_get_clock_service (mach_host_self (), SYSTEM_CLOCK, &clk_id);
+ ret = host_get_clock_service (mach_host_self (), SYSTEM_CLOCK, clk_id);
} while (ret == KERN_ABORTED);
if (ret != KERN_SUCCESS)
#elif defined(__linux__)
void
-mono_clock_init (mono_clock_id_t clk_id)
+mono_clock_init (mono_clock_id_t *clk_id)
{
}
#else
void
-mono_clock_init (mono_clock_id_t clk_id)
+mono_clock_init (mono_clock_id_t *clk_id)
{
// TODO: need to implement this function for PC
g_assert_not_reached ();
typedef void* mono_clock_id_t;
#endif
-void mono_clock_init (mono_clock_id_t clk_id);
+void mono_clock_init (mono_clock_id_t *clk_id);
void mono_clock_cleanup (mono_clock_id_t clk_id);
guint64 mono_clock_get_time_ns (mono_clock_id_t clk_id);