Author: EricStein
Date: 2008-01-04 06:56:23 +0000 (Fri, 04 Jan 2008)
New Revision: 740

Added:
   trunk/pysoy/src/_core-common/_eventLoop.pxi
Modified:
   trunk/pysoy/src/_core-common/_init.pxi
   trunk/pysoy/src/_core-osx/soy._core.pyx
   trunk/pysoy/src/_core-server/soy._core.pyx
   trunk/pysoy/src/_core-w32/soy._core.pyx
   trunk/pysoy/src/_core-x11/soy._core.pyx
Log:
eventloop (which does nothing, so far)


Added: trunk/pysoy/src/_core-common/_eventLoop.pxi
===================================================================
--- trunk/pysoy/src/_core-common/_eventLoop.pxi                         (rev 0)
+++ trunk/pysoy/src/_core-common/_eventLoop.pxi 2008-01-04 06:56:23 UTC (rev 
740)
@@ -0,0 +1,24 @@
+# PySoy _eventLoop
+#
+# Copyright (C) 2006,2007,2008 PySoy Group
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, see http://www.gnu.org/licenses
+#
+# $Id$
+
+cimport soy.transports
+
+cdef void _eventLoop() :
+  while (1) :
+    _sleep(10)


Property changes on: trunk/pysoy/src/_core-common/_eventLoop.pxi
___________________________________________________________________
Name: svn:keywords
   + Id

Modified: trunk/pysoy/src/_core-common/_init.pxi
===================================================================
--- trunk/pysoy/src/_core-common/_init.pxi      2008-01-04 06:43:41 UTC (rev 
739)
+++ trunk/pysoy/src/_core-common/_init.pxi      2008-01-04 06:56:23 UTC (rev 
740)
@@ -18,7 +18,7 @@
 # $Id$
 
 cdef void _init() :
-  cdef int threadid
+  cdef int threadid, eventthread
 
   # Install quit signal catcher
   import signal
@@ -32,4 +32,8 @@
   threadid = 1
   launched = py.PyThread_start_new_thread( <void ((*)(void (*)))> _coreLoop, \
                                            <void *> &threadid )
+
+  eventthread = 2
+  launched = py.PyThread_start_new_thread( <void ((*)(void (*)))> _eventLoop, \
+                                          <void *> &eventthread )
 _init()

Modified: trunk/pysoy/src/_core-osx/soy._core.pyx
===================================================================
--- trunk/pysoy/src/_core-osx/soy._core.pyx     2008-01-04 06:43:41 UTC (rev 
739)
+++ trunk/pysoy/src/_core-osx/soy._core.pyx     2008-01-04 06:56:23 UTC (rev 
740)
@@ -37,6 +37,7 @@
 _screens = soy._internals.Children()
 
 
+include "../_core-common/_eventLoop.pxi"
 include "../_core-common/_callback.pxi"
 include "../_core-common/_coreLoop.pxi"
 include "../_core-common/_runField.pxi"

Modified: trunk/pysoy/src/_core-server/soy._core.pyx
===================================================================
--- trunk/pysoy/src/_core-server/soy._core.pyx  2008-01-04 06:43:41 UTC (rev 
739)
+++ trunk/pysoy/src/_core-server/soy._core.pyx  2008-01-04 06:56:23 UTC (rev 
740)
@@ -39,6 +39,7 @@
 _screens = soy._internals.Children()
 
 
+include "../_core-common/_eventLoop.pxi"
 include "../_core-common/_coreLoop.pxi"
 include "../_core-common/_callback.pxi"
 include "../_core-common/_runField.pxi"

Modified: trunk/pysoy/src/_core-w32/soy._core.pyx
===================================================================
--- trunk/pysoy/src/_core-w32/soy._core.pyx     2008-01-04 06:43:41 UTC (rev 
739)
+++ trunk/pysoy/src/_core-w32/soy._core.pyx     2008-01-04 06:56:23 UTC (rev 
740)
@@ -40,6 +40,7 @@
 include "_time.pxi"
 
 # These must be last and in this order
+include "../_core-common/_eventLoop.pxi"
 include "../_core-common/quit.pxi"
 include "../_core-common/_callback.pxi"
 include "../_core-common/_coreLoop.pxi"

Modified: trunk/pysoy/src/_core-x11/soy._core.pyx
===================================================================
--- trunk/pysoy/src/_core-x11/soy._core.pyx     2008-01-04 06:43:41 UTC (rev 
739)
+++ trunk/pysoy/src/_core-x11/soy._core.pyx     2008-01-04 06:56:23 UTC (rev 
740)
@@ -39,6 +39,7 @@
 include "Window.pxi"
 
 # These must be last and in this order
+include "../_core-common/_eventLoop.pxi"
 include "../_core-common/quit.pxi"
 include "../_core-common/_callback.pxi"
 include "../_core-common/_coreLoop.pxi"

_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to