On Fri, 2011-05-13 at 23:56 +0100, Alan Bell wrote: > mutex is short for mutually exclusive, it means that if the lock is set > then no other parallel process is allowed to mess with the thing that is > being locked. Semaphores are like mutexes but are slightly more > sophisticated. > > http://geekswithblogs.net/shahed/archive/2006/06/09/81268.aspx
Thanks for that Alan. I'll take a closer look. sema_init works just fine in place of MUTEX, but needs a second parameter. I used '1' which seems to work OK. I'll look at the reference above and see what I've been doing. Regards, Barry. -- Barry Drake is a member of the the Ubuntu Advertising team. http://ubuntuadverts.org/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/