Author: tack
Date: Thu Jan 10 14:17:23 2008
New Revision: 2965
Log:
Sync to set_as_mainthread function rename.
Modified:
trunk/base/src/notifier/nf_thread.py
trunk/base/src/notifier/thread.py
Modified: trunk/base/src/notifier/nf_thread.py
==============================================================================
--- trunk/base/src/notifier/nf_thread.py (original)
+++ trunk/base/src/notifier/nf_thread.py Thu Jan 10 14:17:23 2008
@@ -149,7 +149,7 @@
raise RuntimeError('unknown notifier module %s', module)
nf_wrapper.init( 'generic', force_internal=True, **options )
# set main thread and init thread pipe
- kaa.main.set_mainthread()
+ kaa.main.set_as_mainthread()
# adding a timer or socket is not thread safe in general but
# an additional wakeup we don't need does not hurt. And in
# simulation mode the step function does not modify the
Modified: trunk/base/src/notifier/thread.py
==============================================================================
--- trunk/base/src/notifier/thread.py (original)
+++ trunk/base/src/notifier/thread.py Thu Jan 10 14:17:23 2008
@@ -46,7 +46,7 @@
#
# -----------------------------------------------------------------------------
-__all__ = [ 'MainThreadCallback', 'Thread', 'is_mainthread', 'wakeup',
'set_mainthread' ]
+__all__ = [ 'MainThreadCallback', 'Thread', 'is_mainthread', 'wakeup',
'set_as_mainthread' ]
# python imports
import sys
@@ -219,9 +219,9 @@
global _thread_notifier_pipe
_thread_notifier_mainthread = threading.currentThread()
# Make sure we have a pipe between the mainloop and threads. Since loop()
- # calls set_mainthread it is safe to assume the loop is
+ # calls set_as_mainthread it is safe to assume the loop is
# connected correctly. If someone calls step() without loop() and
- # without set_mainthread inter-thread communication does
+ # without set_as_mainthread inter-thread communication does
# not work.
if not _thread_notifier_pipe:
log.info('create thread notifier pipe')
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog