Author: dmeyer
Date: Wed Feb 13 08:46:27 2008
New Revision: 3055
Log:
rename create_thread_notifier_pipe
Modified:
trunk/base/src/notifier/thread.py
trunk/base/src/utils.py
Modified: trunk/base/src/notifier/thread.py
==============================================================================
--- trunk/base/src/notifier/thread.py (original)
+++ trunk/base/src/notifier/thread.py Wed Feb 13 08:46:27 2008
@@ -47,7 +47,7 @@
# -----------------------------------------------------------------------------
__all__ = [ 'MainThreadCallback', 'ThreadCallback', 'is_mainthread',
- 'wakeup', 'set_as_mainthread', '_create_thread_notifier_pipe' ]
+ 'wakeup', 'set_as_mainthread', 'create_thread_notifier_pipe' ]
# python imports
import sys
@@ -223,7 +223,7 @@
os.write(_thread_notifier_pipe[1], "1")
-def _create_thread_notifier_pipe(new = True, purge = False):
+def create_thread_notifier_pipe(new = True, purge = False):
"""
Creates a new pipe for the thread notifier. If new is True, a new pipe
will always be created; if it is False, it will only be created if one
@@ -264,7 +264,7 @@
# loop() calls set_as_mainthread it is safe to assume the loop is
# connected correctly. If someone calls step() without loop() and
# without set_as_mainthread inter-thread communication does not work.
- _create_thread_notifier_pipe()
+ create_thread_notifier_pipe()
def _thread_notifier_queue_callback(callback, args, kwargs, in_progress):
Modified: trunk/base/src/utils.py
==============================================================================
--- trunk/base/src/utils.py (original)
+++ trunk/base/src/utils.py Wed Feb 13 08:46:27 2008
@@ -38,7 +38,7 @@
import kaa
import _utils
-from notifier.thread import _create_thread_notifier_pipe
+from kaa.notifier.thread import create_thread_notifier_pipe
# get logging object
log = logging.getLogger('kaa')
@@ -154,7 +154,7 @@
# Replace any existing thread notifier pipe, otherwise we'll be listening
# to our parent's thread notifier.
- _create_thread_notifier_pipe(new=False, purge=True)
+ create_thread_notifier_pipe(new=False, purge=True)
return lock
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog