GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: a tiny graphical app kit for ruby
Homepage: http://code.whytheluckystiff.net/shoes
Clone URL: git://github.com/why/shoes.git
 * shoes/http/winhttp.c: what i am doing, no need to wait on that thread.
why (author)
Sun Jul 20 10:01:56 -0700 2008
commit  f6fd3b1eb5247a623e6ac8894daffd7bde3be05e
tree    98d0c238a5532fdf1ccacf78e09b652ec127a28f
parent  a777c3b307627370f242e2bdf0397fb62fb0a225
...
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
 
67
68
69
...
50
51
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
54
55
56
0
@@ -50,20 +50,7 @@ void
0
 shoes_queue_download(shoes_download_request *req)
0
 {
0
   DWORD tid;
0
- HANDLE th = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)shoes_download2, (void *)req, 0, &tid);
0
- if (th != NULL)
0
- {
0
- MSG msg;
0
- while (WaitForSingleObject(th, 10) != WAIT_OBJECT_0)
0
- {
0
- while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
0
- {
0
- TranslateMessage(&msg);
0
- DispatchMessage(&msg);
0
- }
0
- }
0
- CloseHandle(th);
0
- }
0
+ CreateThread(0, 0, (LPTHREAD_START_ROUTINE)shoes_download2, (void *)req, 0, &tid);
0
 }
0
 
0
 void

Comments

    No one has commented yet.