package luv
Binding to libuv: cross-platform asynchronous I/O
Install
Dune Dependency
Authors
Maintainers
Sources
luv-0.5.6.tar.gz
sha256=35d8092d7a7e8d00a7ab8caf79d99e2073baf1999f5b9274de4d69078ad83685
md5=fb78fd1b179f5c9585e79b5a1c5ff644
doc/luv/Luv/Thread/index.html
Module Luv.Thread
Source
Threads.
See Threads in the user guide and Threading and synchronization utilities in libuv.
Binds uv_thread_t
.
Returns the representation of the calling thread.
Binds uv_thread_self
. See pthread_self(3p)
.
Compares two thread values for equality.
Binds uv_thread_equal
. See pthread_equal(3p)
.
Starts a new thread, which will run the given function.
Binds uv_thread_create
. See pthread_create(3p)
.
Source
val create_c :
?stack_size:int ->
?argument:nativeint ->
nativeint ->
(t, Error.t) Result.result
Like Luv.Thread.create
, but runs a C function by pointer.
The C function should have signature (*)(void*)
. The default value of ?argument
is NULL
(0).
Waits for the given thread to terminate.
Binds uv_thread_join
. See pthread_join(3p)
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>