Re: [Jack-Devel] A couple of questions about Jackdmp
Le 18 avr. 2011 à 16:25, John Emmas a écrit :
>
> On 18 Apr 2011, at 10:39, Stéphane Letz wrote:
>
>>>
>>> With regard to Visual C++ the only major change I needed to implement was to use the threading library 'pthread_win32' as opposed to regular pthread.
>>
>> Hum... jack2 on WIndows does not use "pthread": it directly uses Windows threads (look at JackWinThread.cpp file)
>>
> Okay - in that case the pthread change must also have been needed for my Cygwin build for some reason. Now that I've abandoned Cygwin I might upgrade to Jack2 with a view to building with VC++. It looks like the version I'm currently using (Jackdmp 1.9) didn't require as many changes as I thought.
>
>
>>
>>>
>>> #ifndef WIN32
>>> exit(0);
>>> #endif
>>> }
>>> }
>>> }
>>>
>>> I assume that if I removed #ifndef WIN32 in the above code, my server would magically unload itself when there are no more clients left - but I'm curious to know why the condition was ever there. Is it still present in the latest code and/or can anyone remember why it's needed?
>>>
>>> John
>>
>> The whole "temporary" machinery has been redesigned since and works also on Windows.
>>
> I implemented that change anyway and it seemed to have the desired effect. No untoward consequences so far, although I've only tested it for a few minutes.
>
> John
It depends if you want to synch for latest jack2 SVN at some point.. or not
Stéphane
1303137191.24597_0.ltw:2,a <DE3AEF72-7C9F-4E72-82A4-14FB7214D064 at grame dot fr>