changeset 1254:0cb5979549be

Add more doc for data_monitor
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 11 Jan 2011 12:33:58 +0800
parents 07e0cb1e051d
children a8e01435e84e
files pyink/data_monitor.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/data_monitor.py	Tue Jan 11 11:43:32 2011 +0800
+++ b/pyink/data_monitor.py	Tue Jan 11 12:33:58 2011 +0800
@@ -5,6 +5,12 @@
 # This class is a meta-class that monitor data accessing for its instance
 # classes.
 #
+# It is a monitor with a small modification.  The calling would be
+# rejected when the domview_ui was locked.  It will not waiting for a
+# lock.
+#
+# \see http://en.wikipedia.org/wiki/Monitor_%28synchronization%29
+#
 # All methods, of instance classes, who's name is prefixed with 'do' are
 # monitored.  When a monitored method was called, monitor will try to lock
 # _domview of the object.  The method is only called if successfully acquiring