apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor J. Orlikowski" <v.j.orlikow...@gte.net>
Subject Re: Conditionals...
Date Tue, 31 Jul 2001 22:31:23 GMT
Rather, let's be more clear.

bool held=false;

     acquire(mutex2);
     release(mutex1);
     held=false;
     release(mutex2);
nap: sleep();
     acquire(mutex2);
     if(held) goto nap;
     acquire(mutex1);
     held=true;
     release(mutex2);

That explain it somewhat better? ;)

Victor
-- 
Victor J. Orlikowski   | The Wall is Down, But the Threat Remains!
==================================================================
v.j.orlikowski@gte.net | orlikowski@apache.org | vjo@us.ibm.com

Mime
View raw message