ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Process functions / Threads, semaphores, signals and mutex
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ConstantDescriptionUsed by the functions
DestructionWithoutModificationBy default, an event is automatically modified during its destruction. If the event is created with this constant, it will not be modified during the call to EventDestroy or during the automatic destruction of the event when closing the application.EventCreate
InfiniteEndless waitThreadWait, ThreadStop,
ThreadWaitSignal, SemaphoreStart
MutexStart
shareNoneThe event, the semaphore or the mutex is specific to the application. If EventDestroy, SemaphoreDestroy or MutexDestroy are not called, the event, semaphore or mutex is destroyed at the end of the application.SemaphoreCreate, EventCreate,
MutexCreate
shareGlobalThe event, the semaphore or the mutex is shared among all the applications found on the computer.SemaphoreCreate, EventCreate,
MutexCreate
shareUserThe event, the semaphore or the mutex is shared among all the applications of the session of the user who runs the application.SemaphoreCreate, EventCreate,
MutexCreate
PriorityLowThread with low priority.ThreadPriority
PriorityHighThread with high priority.ThreadPriority
PriorityNormalThread with normal priority.ThreadPriority
eventAutomaticOnce opened, the event is automatically closed when all the threads are unlocked.EventCreate
eventCloseThe event is closed.EventCreate, EventChange
eventOpenThe event is opened.EventCreate, EventChange
eventOpenAndCloseOpens the event, unlocks all the pending threads and closes the event.EventChange
eventManualThe event is modified by EventChange.EventCreate
New in version 2025
thpConnectedDevice
Use case: Interaction with connected devices.ThreadPersistent
New in version 2025
thpCamera
Use case: background camera access.ThreadPersistent
New in version 2025
thpLocation
Use cases: Operations requiring location access, such as navigation and location sharing.ThreadPersistent
New in version 2025
thpMediaPlayback
Use: Continuous playback of music or video in the background.ThreadPersistent
New in version 2025
thpMicrophone
Use: Background audio recording.ThreadPersistent
New in version 2025
thpHealth
Use case: physical activity monitoring.ThreadPersistent
New in version 2025
thpShortService
Use case: Critical operation that must be completed without interruption.ThreadPersistent
New in version 2025
thpDataSync
Use case: Data synchronization.ThreadPersistent
New in version 2025
thpSpecialUse
Use case: an operation whose use case does not correspond to any of the predefined cases.ThreadPersistent
threadStopRequestedThread status: Stop has been requested for this thread. ThreadState,
Thread type
threadWaitForStartThread start mode: Waits for the thread to start before continuing execution.ThreadExecute,
Thread type
threadAutoAutomatic management of threads.ThreadMode
threadGlobalContextThread launch mode: forces use of global project context if thread is run from a window.
The context of the window is used by default.
ThreadExecute,
Thread type
threadRunningThe thread is running.ThreadState,
Thread type
threadUnknownThe thread was not created or it was destroyed.ThreadState
threadMonoProcessorForces the application to run on a single processor on the multiprocessor, hyperthread or dual core computers.ThreadMode
threadMultiProcessorRestores the standard use of processors on the multiprocessor, hyperthread or dual core computers.ThreadMode
threadNotExecutedStart the thread in normal mode.Thread type
threadNormalStart the thread in normal mode.ThreadExecute
threadMainHandles the main thread.ThreadStop,
ThreadSendSignal,
Thread type
threadCriticalSectionManual management of critical sections.ThreadMode
threadSecureStarts a secondary thread in secure mode.ThreadExecute,
Thread type
threadSuspendedThe thread is suspended.ThreadState
Thread type
threadEndedThe thread is ended.Thread type
threadUseHyperFile
threadUseHFSQL
threadFullCopyHFSQLContext
Triggers the immediate copy of the HFSQL context.
Recommended if the thread must take into account the current positions in the files and queries of caller context.
ThreadExecute,
Thread type
threadLightCopyHFSQLContextTriggers the immediate copy of part of the HFSQL context.
Only the directories containing the data files in HFSQL Classic mode and/or the connections in HFSQL Client/Server mode are stored.
ThreadExecute,
Thread type
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/23/2024

Send a report | Local help