Re: [LIP] Timing out blocking system calls

Arun Sharma <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Wed, Aug 03, 2005 at 05:16:36PM -0400, [email protected] wrote:
> 
>      The values of register and  automatic  variables  are  unde-
>      fined.  Register  or automatic variables whose value must be
>      relied upon must be declared as volatile.
> 
> The temporary fix I applied was to move ALL my variables to global scope :)

Or you could build a wrapper around every blocking system call which doesn't
rely on registers/automatic variables preserved across the blocking system 
call.

Depending on what you're trying to accomplish, sometimes it might be useful
to figure out if the system call is going to block and context switch out
to another thread. This is what the libc_r threading library on BSD did.

	-Arun


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.