diff options
Diffstat (limited to 'libs/backends/wavesaudio/portmidi/src/porttime/ptmacosx_mach.c')
-rw-r--r-- | libs/backends/wavesaudio/portmidi/src/porttime/ptmacosx_mach.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/backends/wavesaudio/portmidi/src/porttime/ptmacosx_mach.c b/libs/backends/wavesaudio/portmidi/src/porttime/ptmacosx_mach.c index c23210e4dc..873a78f59d 100644 --- a/libs/backends/wavesaudio/portmidi/src/porttime/ptmacosx_mach.c +++ b/libs/backends/wavesaudio/portmidi/src/porttime/ptmacosx_mach.c @@ -55,8 +55,8 @@ static void *Pt_CallbackProc(void *p) if (error != KERN_SUCCESS) { mach_error("Couldn't set thread precedence policy", error); } - - + + /* to kill a process, just increment the pt_callback_proc_id */ /* printf("pt_callback_proc_id %d, id %d\n", pt_callback_proc_id, parameters->id); */ while (pt_callback_proc_id == parameters->id) { @@ -80,7 +80,7 @@ PtError Pt_Start(int resolution, PtCallback *callback, void *userData) { if (time_started_flag) return ptAlreadyStarted; start_time = AudioGetCurrentHostTime(); - + if (callback) { int res; pt_callback_parameters *parms; @@ -94,7 +94,7 @@ PtError Pt_Start(int resolution, PtCallback *callback, void *userData) res = pthread_create(&pt_thread_pid, NULL, Pt_CallbackProc, parms); if (res != 0) return ptHostError; } - + time_started_flag = TRUE; return ptNoError; } |