Cross-platform thread class. Supports Windows and Posix
This module provides a platform-independent multithreading API. For now, it supports Windows and Posix threads (pthreads). The interface is greatly inspired by core.thread from Phobos, but dlib.core.thread is fully GC-free and can be used with dlib.core.memory allocators.
Implementation notes: No TLS support, sorry. Any global variables should be marked with _gshared for correct access from threads. Internals of Thread class are platform-dependent, so be aware of that when inheriting.
||Base class for creating threads|