G
Greg
I am writing some code for a kernel of a board that does not contain
the alarm function call. I would like to use it so I am trying to
duplicate its functionality. Basically what I have is inside my alarm
function I create a new thread that sleeps for the time passed in and
then raises SIGALRM. I am using this to try and interrupt a recvfrom
call by basically creating a timeout using this alarm function. Does
anyone know a better way to do this or am I doing this? PS...I don't
have setitimer either with the kernel.
the alarm function call. I would like to use it so I am trying to
duplicate its functionality. Basically what I have is inside my alarm
function I create a new thread that sleeps for the time passed in and
then raises SIGALRM. I am using this to try and interrupt a recvfrom
call by basically creating a timeout using this alarm function. Does
anyone know a better way to do this or am I doing this? PS...I don't
have setitimer either with the kernel.