# Specifications for the "threads" library: version = "[distributed with Ocaml]" description = "Multi-threading" requires(mt,mt_vm) = "threads.vm" requires(mt,mt_posix) = "threads.posix" directory = "^" type_of_threads = "vm" browse_interfaces = " Condition Event Mutex Thread ThreadUnix " error(-mt) = "Missing -thread or -vmthread switch" error(-mt_vm,-mt_posix) = "Missing -thread or -vmthread switch" package "vm" ( # --- Bytecode-only threads: requires = "unix" directory = "+vmthreads" exists_if = "threads.cma" archive(byte,mt,mt_vm) = "threads.cma" version = "[internal]" ) package "posix" ( # --- POSIX-threads: requires = "unix" directory = "+threads" exists_if = "threads.cma" archive(byte,mt,mt_posix) = "threads.cma" archive(native,mt,mt_posix) = "threads.cmxa" version = "[internal]" )