caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] external threads
@ 2003-07-01 10:18 Vsevolod Fedorov
  0 siblings, 0 replies; only message in thread
From: Vsevolod Fedorov @ 2003-07-01 10:18 UTC (permalink / raw)
  To: caml-list

Hello.

One more question about ocaml extensions and threads.

It looks like it is impossible to call ocaml functions from 'external'
thread - thread created from C, by pthread_create. 
So it is difficult, for example, use ocaml to serve CORBA calls.
Caml uses curr_thread global variable and
pthread_setspecific(thread_descriptor_key, ...) available only inside
posix.c

Is there some solution?
Python, for example, provides special API to set up external threads.

Seva

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

only message in thread, other threads:[~2003-07-01 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-01 10:18 [Caml-list] external threads Vsevolod Fedorov

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