caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Problem with try_lock on win32.
@ 2010-01-27  2:45 Romain Beauxis
  2010-01-27  8:23 ` [Caml-list] " David Allsopp
  0 siblings, 1 reply; 3+ messages in thread
From: Romain Beauxis @ 2010-01-27  2:45 UTC (permalink / raw)
  To: caml-list

	Hi all !

I have a problem with the following code under win32:

let m = Mutex.create ()

let () =
  Mutex.lock m;
  if Mutex.try_lock m then
    Printf.printf "locked !\n"
  else
    Printf.printf "could not lock!\n"


When run, the program outputs: "locked !"

Obviously, this is not the intented behaviour..

Do you know what is wrong ? Is there something I am missing ??


Romain


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-27 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-27  2:45 Problem with try_lock on win32 Romain Beauxis
2010-01-27  8:23 ` [Caml-list] " David Allsopp
2010-01-27 14:54   ` Romain Beauxis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).