Re: [PATCH] shm_destroy lock hang

From: David Schwartz (davids@webmaster.com)
Date: Thu Jun 27 2002 - 15:24:14 EST


>Just please avoid doing that locking nastyness:
>
>function() {
>unlock();
>}
>
>
>lock();
>if (something)
> function();
>else
> unlock();

        What do you do in cases where 'function' looks like this:

function() {
 something();
 unlock();
 something_else();
}

        DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:12 EST