Version française
Home     About     Download     Resources     Contact us    
Browse thread
threads & OCamlTK
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Don Syme <dsyme@m...>
Subject: threads & OCamlTK

And, on a vaguely related topic, is it possible to use threads with programs
that also use OCamlTK?  I know Tk is not threadsafe, but if only one thread
is calling Tk functions, then perhaps it's still OK?  

Also, the manual says:
  > All object files on the command line must also have been compiled with
the -thread option, 
  > which selects a special, thread-safe version of the standard library
(see chapter 8). 

But does this apply to the object files contained in libraries such as
OCamlTK, Unix, Num and Str?  

Finally, if a particular library has used non-threadsafe constructs, and you
try to link it into a threaded program, some compiler support for detecting
and warning about this might be handy.

Thanks,
Don


-----Original Message-----
From: Don Syme [mailto:dsyme@microsoft.com]
Sent: 15 March 1999 14:27
To: caml-list@inria.fr
Subject: Break under Windows NT




Hi,

Is it true that under the Windows NT version of OCaml there's no easy way of
sending the equivalent of a SIGINT to a OCaml process and have OCaml raise
an exception?  Or have I missed something?  I need to be able to
asynchronously break long running computations under NT.  BTW I'm also using
OCamlTK.

Thanks,
Don