diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-22 01:28:34 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-22 01:28:34 +0000 |
commit | 99a29c1926eee84f100ad9ea59a8c33f7878c342 (patch) | |
tree | 8b9235a630b5839350529d9e255d4f87c2389b5b /externals/grill/flext/tutorial/thread1 | |
parent | 927c48a90eb2a5ebf9e221041cd963c7377c8349 (diff) |
"no message"
svn path=/trunk/; revision=306
Diffstat (limited to 'externals/grill/flext/tutorial/thread1')
-rw-r--r-- | externals/grill/flext/tutorial/thread1/main.cpp | 8 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/thread1/thread1.cw | bin | 68426 -> 68426 bytes |
2 files changed, 5 insertions, 3 deletions
diff --git a/externals/grill/flext/tutorial/thread1/main.cpp b/externals/grill/flext/tutorial/thread1/main.cpp index 72fb1019..f5e2a651 100644 --- a/externals/grill/flext/tutorial/thread1/main.cpp +++ b/externals/grill/flext/tutorial/thread1/main.cpp @@ -37,7 +37,7 @@ protected: void m_start(); // method function private: - // define threaded callback for method m_start (with boolean argument) + // define threaded callback for method m_start // the same syntax as with FLEXT_CALLBACK is used here FLEXT_THREAD(m_start); }; @@ -64,17 +64,19 @@ void thread1::m_start() for(int i = 0; i < 20 && !ShouldExit(); ++i) { ToOutInt(0,i); // output loop count +// post("%i",i); // wait for half a second for(int j = 0; j < 5 && !ShouldExit(); ++j) Sleep(0.1f); // note: we shall not block a thread for a longer time. // The system might want to destroy the object in the meantime and - // expects thread termination. - // Flext waits for 1 second by default, then it aborts the thread brutally + // expects thread termination. In such a case flext waits + // for 1 second by default, then it aborts the thread brutally } // output a final zero ToOutInt(0,0); +// post("end"); } diff --git a/externals/grill/flext/tutorial/thread1/thread1.cw b/externals/grill/flext/tutorial/thread1/thread1.cw Binary files differindex f971d4a3..680bdfba 100644 --- a/externals/grill/flext/tutorial/thread1/thread1.cw +++ b/externals/grill/flext/tutorial/thread1/thread1.cw |