Uri Guttman <[EMAIL PROTECTED]> wrote: > >>>>> "LT" == Leopold Toetsch <[EMAIL PROTECTED]> writes:
> LT> These are platform specific details. We will use whatever the > LT> platform/OS provides. In the source code its a LOCK() UNLOCK() pair. > LT> The LOCK() can be any atomic operation and doesn't need to call the > LT> kernel, if the lock is aquired. > if it doesn't call the kernel, how can a thread be blocked? I wrote, *if* the lock is aquired. That's AFAIK the fast path of a futex or of the described Win32 behavior. The slow path is always a kernel call (or a some rounds spinning before ...) But anyway, we don't reinvent these locking primitives. > uri leo