[Click] write handler synchronization
Eddie Kohler
kohler at cs.ucla.edu
Thu Nov 13 12:09:50 EST 2008
Hi Roman,
Normally run_task will NOT execute in parallel with a write handler. Write
handlers are by default "exclusive," meaning that all threads are paused
before the write handler executes.
Note that this ONLY applies to write handlers accessed via the Click file
system. Write handlers called by, for example, Script elements are not
subject to the same constraints. (Maybe this should be changed?...)
Eddie
Roman Chertov wrote:
> Hello,
> I am making an element which will vary link properties based on a
> provided scenario file. A user app will periodically communicate with
> the Click module via the read/write handlers. Is it possible for
> run_task to execute while a write handler is executing? This can
> potentially corrupt the data structure which houses the link events. So
> I am curious if I need to add synchronization or not.
>
> Thanks,
>
> Roman
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list