Version française
Home     About     Download     Resources     Contact us    
Browse thread
effect of -thread with ocamlc/ocamlopt -c
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] effect of -thread with ocamlc/ocamlopt -c
Jacques Garrigue wrote:
> The question is a bit different depending on whether you use system
> threads or vmthreads. [...]

Jacques' explanation is correct: there was a time when the requirement
listed in the manual ("all modules of a multithreaded program must be
compiled with ocamlc -thread ") made sense, because some standard
library modules had different *interfaces* between the non-threaded
and threaded versions.  This is no longer the case: with system
threads, those modules have the same interfaces and the same
implementations, and even with bytecode threads they have different
implementations but identical interfaces.

So, you can safely ignore this sentence in the manual.  The manual
will be updated for the next major release.

- Xavier Leroy