[gme-users] Mutex for the local model
ksmyth at isis.vanderbilt.edu
Thu Mar 8 09:46:08 CST 2012
There is no mechanism for a mutex like this in GME.
To reduce the chance of a conflict, I'd recommend you do all the
processing on the main thread, e.g. by creating a hidden window and
posting messages to it or by creating a COM object and using marshaling.
Of course this can't eliminate race conditions.
Behavior is certainly undefined if you use GME COM objects on a
different thread (without using CoMarshalInterThreadInterfaceInStream/
You could try using the Multi-user backend with SVN, making automated
changes in one instance of the project, and user changes in another.
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Jae
Sent: Monday, March 05, 2012 1:22 PM
Subject: [gme-users] Mutex for the local model
I am building a GME plugin that dynamically modifies the local model
based on the information from outside.
The plugin basically has an extra thread that is constantly injecting
changes through BON APIs.
The tool works okay, but it becomes somewhat unstable when the plugin
and someone using the GME make simultaneous changes.
Is there a way to apply something like a mutex to protect the local
Thank you very very much for your time! :D
jaeyounb at USC.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gme-users