Messages in this thread | | | From | (Davide Libenzi) | Subject | Re: deadlock avoidance? | Date | Tue, 7 Dec 1999 23:24:22 +0100 |
| |
Why not implement a new lock that keep the pid of the task that own the lock as long as a counter of locks. If the same task try to acquire the lock, increment the counter. On counter == 0, release the lock.
Cheers, Davide.
-- "Debian, the Freedom in Freedom."
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |