Jesper,

On Dec 16, 2010, at 12:38 PM, Jesper Louis Andersen wrote:

> Simply have an Ocaml array of bytes or something such to
> store data into (my Ocaml representation specific knowledge is not up
> to par at the moment, but arrange it such that the byte-array has
> C-representation underneath.

The data comes from a C++ thread running a market data feed. I was planning to 
manage the memory-mapped file in the same thread and only notify OCaml when new 
data is available, after extending the memory mapping. It seems to be the 
simplest approach to me. 

I also need to launch a C++ thread from OCaml and talk to it but that's 
probably a subject for a new mailing list thread. 

        Thanks, Joel

---
http://twitter.com/wagerlabs

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to