Re: ahc/ahd locking

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sepherosa Ziehau
Date: Monday, December 31, 2007 - 8:20 pm

On Jan 1, 2008 8:19 AM, Peter Avalos <pavalos@theshell.com> wrote:

Assum serializer 'ser' is held.

...
/* Your code */
...
crit_enter();
tsleep_interlock(your_cond);
lwkt_serialize_exit(ser);
error = tsleep(your_cond, 0, "name", to);
crit_exit();
lwkt_serialize_enter(ser);
...
/* Your code */
...

Best Regards,
sephe

-- 
Live Free or Die
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: ahc/ahd locking, Matthew Dillon, (Mon Dec 31, 9:32 am)
Re: ahc/ahd locking, Peter Avalos, (Mon Dec 31, 3:21 pm)
Re: ahc/ahd locking, Peter Avalos, (Mon Dec 31, 5:19 pm)
Re: ahc/ahd locking, Sepherosa Ziehau, (Mon Dec 31, 8:20 pm)
Re: ahc/ahd locking, Peter Avalos, (Tue Jan 1, 7:15 pm)
Re: ahc/ahd locking, Peter Avalos, (Tue Jan 1, 7:15 pm)