Functions and constants functions
Free functions and constants of Windows.
On this page
- Use
import ThinkMeta.ConcurrentTasks.Windows.Await;- Namespace
ThinkMeta::ConcurrentTasks::Windows- Platforms
- Windows
Functions
Windows::Await
Waits until a Windows object is signaled.
Syntax
Parameters
handleHANDLE- A handle that
WaitForSingleObjectaccepts: event, semaphore, mutex, process, thread, waitable timer, change notification and others.
Return value
Type: ErrorCode
Error::Success, or the error of creating the thread-pool wait.
Remarks
Returns at once if the object is signaled, otherwise suspends the calling task until it is; the scheduler thread runs other tasks meanwhile. A thread-pool wait watches the object. Waiting consumes the signal as WaitForSingleObject does: an auto-reset event is reset, a semaphore count taken. A mutex is acquired by a thread of the thread pool, not by the caller; do not use this function for mutexes. Task or converted thread only. Keep the handle open until the function returns. There is no timed variant.
See also
Concepts
Windows::SockAddrType
The socket address structures accepted where an address is passed by type.
Syntax
template <typename T>
concept SockAddrType =
std::same_as<T, sockaddr>
|| std::same_as<T, sockaddr_in>
|| std::same_as<T, sockaddr_in6>
|| std::same_as<T, sockaddr_storage>;Template parameters
Ttypename- The type to check:
sockaddr,sockaddr_in,sockaddr_in6orsockaddr_storage.
Remarks
The address size passed to Winsock is sizeof(T).
Generated from ThinkMeta.ConcurrentTasks.API @ c7663c4 (2026-11-19).