[vlc-devel] [PATCH 33/41] Use kill() instead of pthread_kill() on OS/2.
KO Myung-Hun
komh78 at gmail.com
Tue Oct 11 13:29:25 CEST 2011
Rémi Denis-Courmont wrote:
> Le lundi 10 octobre 2011 14:44:12 KO Myung-Hun, vous avez écrit :
>> pthread_kill() has not been implemented on OS/2, yet.
>> ---
>> bin/vlc.c | 5 +++++
>> 1 files changed, 5 insertions(+), 0 deletions(-)
>>
>> diff --git a/bin/vlc.c b/bin/vlc.c
>> index 394211a..3451360 100644
>> --- a/bin/vlc.c
>> +++ b/bin/vlc.c
>> @@ -67,9 +67,14 @@ static bool signal_ignored (int signum)
>>
>> static void vlc_kill (void *data)
>> {
>> +#ifndef __OS2__
>> pthread_t *ps = data;
>>
>> pthread_kill (*ps, SIGTERM);
>> +#else
>> + // send a signal to the main thread
>> + kill (getpid(), SIGTERM);
>> +#endif
>
> Is this warranted to hit the main thread?
Yes. The reason why I use kill() instead of raise().
> Is this not longer than 'raise(SIGTERM);' ?
>
raise() generates a signal in the current thread.
>> }
>>
>> static void exit_timeout (int signum)
>
>
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.0.14
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1GHz with 512 MB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
More information about the vlc-devel
mailing list