[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
about send in rtems_timer_service_routine
- Date: Sun, 20 Apr 2008 10:10:11 -0600
- From: daron.chabot at usask.ca (Daron Chabot)
- Subject: about send in rtems_timer_service_routine
Not having checked send(2) for blocking behavior, this is just a guess:
The function, rtems_timer_service_routine( ), is called from an
interrupt context. Code called from an interrupt context *cannot*
perform operations that may block waiting for resources (i.e. send(2)).
You could use an rtems_timer_server instead: this server runs in a
thread context which has no restrictions on the methods invoked from it.
On 20-Apr-08, at 2:16 AM, Ray wrote:
> Dear powerain ,
> Maybe you should check this website first
> here is a mandarin version
> BTW, it seems to me that rtems_timer_service_routine=void if I read
> code correct
> Thanks & Best Regards!
> Ray, rayx.cn at gmail.com
> ----- Receiving the following content -----
> From: powerain
> Receiver: rtems-users
> Time: 2008-04-20, 09:25:20
> Subject: about send in rtems_timer_service_routine
>> hi everyone,
>> i send a package in a rtems_timer_service_routine using send
>> function by a socket.
>> but is does not work.
>> who tell me why.
>> thanks very much.
>> _____________________ next part ______________________
>> rtems-users mailing list
>> rtems-users at rtems.com
> rtems-users mailing list
> rtems-users at rtems.com