AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de gestión de procesos / Funciones de área de memoria compartida
  • Mechanism for automatic notification of modifications
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Waits for the end of process about the notifications of modification of a shared memory area. This process is performed by the other applications that use the memory area and that have asked to be notified.
Example
// Opens the shared memory area
ZoneNum is int
ZoneNum = fMemOpen("DialogZone", 1024, shareGlobal)
 
// Writes an information
fWriteLine(ZoneNum, "IDAPP=" + ExeInfo(exeName))
 
// Waits for the other applications to process the writing notification
fMemWait(ZoneNum)
Syntax
<Result> = fMemWait(<Identifier of shared memory area> [, <Timeout>])
<Result>: Optional boolean
  • True if all applications that received a notification have processed it,
  • False if the timeout was exceeded.
<Identifier of shared memory area>: Integer
Identifier of shared memory area to use, defined by fMemOpen.
<Timeout>: Optional integer
Maximum timeout (in milliseconds). This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • the duration in a readable format (e.g., '1s' or '10ms').
There is no timeout if this parameter is not specified.
Remarks

Mechanism for automatic notification of modifications

A procedure for processing the notifications of modifications can be passed as parameter to fMemOpen. If this procedure was specified, it will be automatically called whenever the content of the shared memory zone is modified.
By using fMemWait, an application that writes to a shared memory area can ensure that its change has been processed by other applications that use the memory area.
Remark: The mechanism for automatic notification only operates between WLanguage applications.
Component: wd290std.dll
Versión mínima requerida
  • Versión 15
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

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