Skip to main content

Module thread

Module thread 

Source
Expand description

Thread callback information and utilities for azul-layout

This module provides thread-related callback structures for background tasks that need to interact with the UI thread and query layout information.

Structs§

CreateThreadCallback
LibraryReceiveThreadMsgCallback
Thread
Wrapper around Thread because Thread needs to be clone-able
ThreadCallback
ThreadDestructorCallback
ThreadInner
A Thread is a separate thread that is owned by the framework.
ThreadSendCallback
ThreadSender
ThreadSender allows sending messages from the background thread to the main thread
ThreadSenderDestructorCallback
ThreadSenderInner
ThreadWriteBackMsg
Message containing writeback data and callback
WriteBackCallback
Callback that can run when a thread receives a WriteBack message

Enums§

OptionThread
Optional Thread type for API compatibility
OptionThreadReceiveMsg
ThreadReceiveMsg
Message that is sent back from the running thread to the main thread

Functions§

create_thread_libstd
Create a new thread using the standard library
thread_sleep_ms
Sleeps the current thread for the specified number of milliseconds.
thread_sleep_ns
Sleeps the current thread for the specified number of nanoseconds.
thread_sleep_us
Sleeps the current thread for the specified number of microseconds.

Type Aliases§

CreateThreadCallbackType
Function that creates a new Thread object
LibraryReceiveThreadMsgCallbackType
ThreadCallbackType
ThreadDestructorCallbackType
ThreadSendCallbackType
Callback for sending messages from thread to main thread
ThreadSenderDestructorCallbackType
Destructor callback for ThreadSender
WriteBackCallbackType
Callback that runs when a thread receives a WriteBack message