From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,4d05389b4676d696,start X-Google-Attributes: gidf72b0,public X-Google-Thread: f66ab,4d05389b4676d696,start X-Google-Attributes: gidf66ab,public X-Google-Thread: fee84,4d05389b4676d696,start X-Google-Attributes: gidfee84,public X-Google-Thread: 115614,4d05389b4676d696,start X-Google-Attributes: gid115614,public From: duke@annwn.iscp.bellcore.com (Duke Robillard) Subject: msem_lock? Date: 1996/03/22 Message-ID: #1/1 X-Deja-AN: 143730945 organization: Church of Bound Brooke Shields newsgroups: comp.unix.aix,comp.unix.misc,comp.unix.osf.osf1,comp.os.mach I've just come across msem_lock() and company in AIX (IBM's UNIX, for those not in comp.unix.aix). They are apparently some kind of fast semaphore, implemented by setting/testing a value in shared memory (either mmap or shmget shared memory). I've never seen these before--does anyone know where they came from? The doc page mentions OSF's references, and the .h file has references to Mach and BSD. They're in the same .h as mmap() (mman.h), Does anyone know how they work? Like, does msem_lock() spin if the value is set already, or does it go to sleep (maybe using msleep()/mwakeup())? Thanks in advance. -- Duke Robillard, duke@iscp.bellcore.com