Re: Q. aboutMutableFileSet
Svata Dedic <[email protected]> Thu, 19 Jun 2003 10:32:12 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Message-ID | <[email protected]> |
Vitezslav Stejskal wrote:
>
> FS.runAtomic {
> synchronized(xyz) {
> FS.modify_and_fire_events();
> }
> }
>
If _only_ events are the targetted feature, I would rather suggest to
allow FSet construction with Mutex as a parameter. The fset may use
Mutex.postReadRequest() to queue change events for delivery.
This has also the advantage that the FileSet owners (who construct them)
may connect multiple filesets into one locking domain (using the same
Mutex instance).
With dependent FileSets (e.g. fset of roots of directories and fset of
that forest content) it would be very beneficial for the observed
structure's integrity.
-Svata