|
|
|
|
- Mechanism for automatic notification of modifications
fMemWait (Function) In french: fMemAttend 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. // 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|