On 13/05/11 21:27, Barry Drake wrote:
On Fri, 2011-05-13 at 20:58 +0100, Matthew Daubney wrote:
Lots of suggestions on the net seem to suggest replacing all instances
of init_MUTEX with sema_init (use a semaphore lock instead of a mutex
lock). Might be worth a try :)
Thanks Matt. It worked like a charm! I hadn't a clue what a 'mutex'
was. There was only one instance, and sema_init worked just fine.
Regards, Barry.
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
--
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/