[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Internal libc lock interface
From: |
Igor Khavkine |
Subject: |
Internal libc lock interface |
Date: |
Thu, 21 Jun 2001 01:56:28 -0400 |
User-agent: |
Mutt/1.3.18i |
I found a header in glibc that defines a generic lock interface.
The file is sysdeps/generic/bits/libc-lock.h. There is a Mach
specific version of it in sysdeps/mach/bits. It is implemented
on top of cthread locks.
Was intended to be a high level or low level lock inteface?
So should I try to reimplement it on top of spin_lock's or
pthread_mutex's? In the former case, how do I deal with
rwlocks (what are these btw?) or recursive locks. In the latter
I have to come up with a lower level generic interface to locks.
Thanks.
Igor
- Internal libc lock interface,
Igor Khavkine <=