ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Version: 2026

Category: Threads, semaphores, signals and mutex
58 results
<AutomaticEvent variable>.Close (Function)
Closes a synchronization event between several threads.
<AutomaticEvent variable>.Open (Function)
Opens a synchronization event between several threads.
<AutomaticEvent variable>.Wait (Function)
Locks the current thread while waiting for the specified event to be opened.
<ManualEvent variable>.Close (Function)
Closes a synchronization event between several threads.
<ManualEvent variable>.Open (Function)
Opens a synchronization event between several threads.
<ManualEvent variable>.Wait (Function)
Locks the current thread while waiting for the specified event to be opened.
<Thread variable>.Wait (Function)
Waits for the end of the execution of the specified thread.
<Thread>.RequestStop (Function)
Sends a stop request to a thread.
<Thread>.SendSignal (Function)
The current thread sends a signal to the specified thread in order to unlock it.
AutomaticEvent (Variable type)
The AutomaticEvent type is used to manage an automatic event.
CriticalSection (Function)
Activates a critical section named or on a variable in an instruction of type USE ... IN.
CriticalSection (Variable type)
CriticalSection variables are used to define critical sections to limit the simultaneous execution of a code (procedure, line of code, etc.) to one thread at a given moment in an application.
CriticalSectionEnd (Function)
Marks the end of a critical section: another thread will be able to run the code.
CriticalSectionStart (Function)
Marks the beginning of a critical section: no other thread will be able to run the code as long as the current thread does not exit from the critical section.
EventChange (Function)
Modifies the status of an event.
EventClose (Function)
Closes a synchronization event between several threads.
EventCreate (Function)
Creates an event.
EventDestroy (Function)
Explicitly destroys an event.
EventOpen (Function)
Opens a synchronization event between several threads.
EventWait (Function)
Locks the current thread while waiting for the specified event to be opened.
ExecuteMainThread (Function)
Triggers the execution of the procedure specified in the main application thread.
ExecuteMainThreadAsynchronous (Function)
Executes a procedure in the main thread of the application without waiting for the end of its execution.
Functions for managing threads (prefix syntax)
List of functions for managing threads (prefix syntax)
Managing mutexes in threads
A mutex is used to limit the simultaneous execution of a code (procedure, line of code, etc.) to one thread at a given time.
Managing semaphores in threads: limiting the concurrent execution of lines of code
Semaphores are used to limit the simultaneous execution of a code (procedure, line of code, etc.
Managing the critical sections
Semaphores are used to limit the simultaneous execution of a code (procedure, line of code, etc.
Managing threads
WINDEV and WINDEV Mobile propose several functions used to perform an advanced management of threads.
ManualEvent (Variable type)
The ManualEvent type is used to manage a manual event.
MutexCreate (Function)
Explicitly creates a mutex.
MutexDestroy (Function)
Explicitly destroys a mutex.
MutexEnd (Function)
Signals that the thread frees the mutex.
MutexStart (Function)
Locks the current thread while waiting for the mutex to be freed.
Opening a window from a secondary thread
A secondary thread cannot directly open a window with the standard WLanguage functions such as...
SemaphoreCreate (Function)
Creates a semaphore.
SemaphoreDestroy (Function)
Explicitly destroys a semaphore.
SemaphoreEnd (Function)
Allows one or more threads to exit from the area protected by the semaphore.
SemaphoreStart (Function)
Locks the current thread until the semaphore is opened (which means until a "free" spot becomes available in the protected section).
Synchronizing threads via events
Events can be used to synchronize the different threads of an application...
Thread execution
At runtime, an application runs in a main thread...
Thread functions
List of functions for managing threads
Thread management constants
List of constants used by the functions for managing threads, critical sections, semaphores, mutexes, ...
Thread (Variable type)
The Thread type allows you to define all the characteristics of a thread.
ThreadCurrent (Function)
Returns the name of the thread currently run.
ThreadEnd (Function)
Ends the execution of the current thread.
ThreadExecute (Function)
Starts the execution of a secondary thread.
ThreadMode (Function)
Changes the management mode of threads.
ThreadPause (Function)
Pauses the current thread during the specified duration.
ThreadPersistent (Function)
Makes a thread persistent.
ThreadPriority (Function)
Returns or modifies the priority level of a thread.
ThreadRequestStop (Function)
Sends a stop request to a thread.
ThreadResume (Function)
Resumes the execution of a thread that was interrupted by ThreadSuspend. Function not recommended.
ThreadSendSignal (Function)
The current thread sends a signal to the specified thread in order to unlock it.
ThreadState (Function)
Returns the current status of a thread.
ThreadStop (Function)
Stops a secondary thread. Function not recommended.
ThreadStopRequested (Function)
Checks if a stop request has been sent to the running thread.
ThreadSuspend (Function)
Temporarily suspends the execution of the specified thread. Function not recommended.
ThreadWait (Function)
Waits for the end of the execution of the specified thread.
ThreadWaitSignal (Function)
Locks the current thread until it receives a signal from another thread.