caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Running OCaml code on (native) non-OCaml threads
@ 2008-03-15  5:19 Francois Rouaix
  0 siblings, 0 replies; only message in thread
From: Francois Rouaix @ 2008-03-15  5:19 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

Folks,Two years back, I asked about a situation where I wanted to run OCaml
code on threads created by a non-OCaml library, and the answer was that it
wasn't possible. Again today I'm facing the same situation, but this time I
believe there might be a way around it.
In theory, wouldn't it be possible to "attach" any posix thread to the OCaml
runtime, after the thread creation? The existing code isn't structured that
way (caml_thread_new, caml_thread_start), but superficially it looks like
one could set up the caml_thread_struct, if there isn't one for that thread
already. Am I missing something critical?
Thanks,
--f

[-- Attachment #2: Type: text/html, Size: 745 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-15  5:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-15  5:19 Running OCaml code on (native) non-OCaml threads Francois Rouaix

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).