diff pyink/data_monitor.py @ 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 ca301f6abef7
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