Skip to main content

mlx_stream_thread_local_new

Function mlx_stream_thread_local_new 

Source
pub unsafe extern "C" fn mlx_stream_thread_local_new(
    dev: mlx_device,
) -> mlx_stream_thread_local
Expand description

Returns a new per-thread stream on a device.

Streams created this way are unique per thread: evaluating the same mlx_stream_thread_local from different threads yields distinct streams.