AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de gestión de procesos / Hilos, semáforos, señales y mutex
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Nota: Estas funciones también están disponibles en la sintaxis con prefijo (Funciones de gestión de subprocesos (sintaxis con prefijo)).
Las siguientes funciones permiten gestionar subprocesos:
CriticalSectionActivates a named critical section or variable in a USE ... IN instruction.
CriticalSectionEndMarks the end of a critical section: another thread will be able to run the code.
CriticalSectionStartMarks 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.
EventChangeModifies the status of an event.
EventCloseCloses a synchronization event between several threads.
EventCreateCreates an event.
EventDestroyExplicitly destroys an event.
EventOpenOpens a synchronization event between several threads.
EventWaitBloquea el hilo actual mientras espera a que se abra el evento especificado.
ExecuteMainThreadDesencadena la ejecución del procedimiento especificado en el subproceso principal de la aplicación.
ExecuteMainThreadAsynchronousEjecuta un procedimiento en el subproceso principal de la aplicación sin esperar a que termine de ejecutarse.
MutexCreateCrea explícitamente un mutex.
MutexDestroyDestruye explícitamente un mutex.
MutexEndSeñala que el hilo libera el mutex.
MutexStartBloquea el subproceso actual a la espera de que se libere el mutex.
SemaphoreCreateCreates a semaphore.
SemaphoreDestroyExplicitly destroys a semaphore.
SemaphoreEndAllows one or more threads to exit from the area protected by the semaphore.
SemaphoreStartLocks the current thread until the semaphore is opened (which means until a "free" spot becomes available in the protected section).
ThreadCurrentDevuelve el nombre del hilo que se está ejecutando actualmente.
ThreadEndFinaliza la ejecución del subproceso actual.
ThreadExecuteStarts the execution of a secondary thread.
ThreadModeChanges the management mode of threads.
ThreadPausePauses the current thread during the specified duration.
ThreadPersistentHace que un subproceso sea persistente.
ThreadPriorityDevuelve o modifica el nivel de prioridad de un hilo.
ThreadRequestStopEnvía una solicitud para detener un subproceso.
ThreadResumeResumes the execution of a thread that was interrupted by ThreadSuspend. Function not recommended.
ThreadSendSignalThe current thread sends a signal to the specified thread in order to unlock it.
ThreadStateDevuelve el estado actual de un hilo.
ThreadStopDetiene un subproceso secundario. Función no recomendada.
ThreadStopRequestedVerifica si se ha enviado una solicitud al hilo que se está ejecutando.
ThreadSuspendTemporarily suspends the execution of the specified thread. Function not recommended.
ThreadWaitEspera a que finalice la ejecución del subproceso especificado.
ThreadWaitSignalLocks the current thread until it receives a signal from another thread.
También se pueden utilizar los siguientes tipos de variables:
AutomaticEventThe AutomaticEvent type is used to manage an automatic event.
ManualEventThe ManualEvent type is used to manage a manual event.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 23/09/2024

Señalar un error o enviar una sugerencia | Ayuda local