X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fbackends%2Fwavesaudio%2Fportmidi%2Fsrc%2Fporttime%2Fptmacosx_mach.c;h=873a78f59d4a6b4723641d3ab18032c07eab1ae0;hb=4dc63966f0872efe768dad61eb9b8785d06b92d1;hp=c23210e4dce50f289dc82865f14b171cde321209;hpb=297e80e020da94a56984b20782584bb1dd96ea34;p=ardour.git 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; }