[fpc-pascal] timer_create on linux
Max Vlasov
max.vlasov at gmail.com
Wed Aug 10 13:25:18 CEST 2011
On Wed, Aug 10, 2011 at 2:04 PM, <michael.vancanneyt at wisa.be> wrote:
>
>
> On Wed, 10 Aug 2011, Max Vlasov wrote:
>
> Hi,
>>
>> I tried to implement linux timer with timer_create and signals, but an
>> exception always fired (External:SIGUSR1)....
>> What can be wrong with the code below?
>>
>
> I assume threads are used for these timers. If so, then this is normal,
> signal USR1 is used
> by the linux threading mechanism, if I remember correctly.
>
>
I also thought that the signal could be occupied by some api, but changing
it to SIGRTMIN + 1, +2,+3 just changes the exception to "External:SIG35",
"External:SIG36"...
Maybe I should apply the blocking mask for other signal for this api since
it probably uses threads?
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110810/ffb2087f/attachment.html>
More information about the fpc-pascal
mailing list