2 ==============================================================================
\r
4 This file is part of the async
\r
5 Copyright 2005-10 by Satoshi Fujiwara.
\r
7 async can be redistributed and/or modified under the terms of the
\r
8 GNU General Public License, as published by the Free Software Foundation;
\r
9 either version 2 of the License, or (at your option) any later version.
\r
11 async is distributed in the hope that it will be useful,
\r
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 GNU General Public License for more details.
\r
16 You should have received a copy of the GNU General Public License
\r
17 along with async; if not, visit www.gnu.org/licenses or write to the
\r
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330,
\r
19 Boston, MA 02111-1307 USA
\r
21 ==============================================================================
\r
24 #include <commctrl.h>
\r
27 #define _CRTDBG_MAP_ALLOC
\r
29 #define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
\r
32 #include "message_loop.h"
\r
34 #include "application.h"
\r
35 #include "writer_thread.h"
\r
37 #include "async_reader.h"
\r
39 using namespace std;
\r
44 void writer_thread_t::run()
\r
48 sf::com_initialize init(0,multi_threaded);
\r
51 switch(status = status_.load(),status !=status_exit)
\r
53 case status_processing:
\r
59 // WaitForSingleObject(event_.get(),WAIT_TIMEOUT_DEFAULT);
\r