[Unison-hackers] mutex

Ben Willmore ben at opendarwin.org
Wed Apr 19 00:33:13 EDT 2006


There is a crash using the Mac GUI that seems to occur when one thread
updates a reconItem (actually stateItem.whatHappened), and another
thread reads from it at the same time (try scrolling up with the
up-arrow through the reconitem table while a sync is in progress).  It
should be easily fixable with a mutex, available as part of the ocaml
threads libraries.  However, I see that significant effort has gone
into avoiding use of those libraries in Unison, and using lwt/*
instead.  Is there an alternative mutex implementation or workaround I
can use?

Ben


More information about the Unison-hackers mailing list