Skip to content

Commit bf0bdfa

Browse files
polytypichhugo
andcommitted
Don't refer to caml_ml_domain_id on OCaml 4
See #332 Co-authored-by: Hugo Heuzard <[email protected]>
1 parent 6d64d24 commit bf0bdfa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/picos.thread/thread.ocaml4.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ function caml_thread_initialize(unit) {
77
var caml_thread = [0, 0, 0, 0]
88

99
//Provides: caml_thread_self
10-
//Requires: caml_ml_domain_id, caml_failwith, caml_thread
10+
//Requires: caml_thread
1111
function caml_thread_self(unit) {
12-
if (caml_ml_domain_id(unit) != caml_thread[1])
13-
caml_failwith('caml_thread_self: spawning of domains is not supported')
12+
// There are no threads other than the main thread.
1413
return caml_thread
1514
}
1615

0 commit comments

Comments
 (0)