OSDN Git Service

windows/thread_impl.hpp: こうじゃないかなぁー、っと
authormyun2 <myun2@nwhite.info>
Thu, 12 Jul 2012 05:27:36 +0000 (14:27 +0900)
committermyun2 <myun2@nwhite.info>
Thu, 12 Jul 2012 05:27:36 +0000 (14:27 +0900)
roast/include/roast/windows/thread_impl.hpp

index 0353e85..20b9d8a 100644 (file)
@@ -16,6 +16,9 @@ namespace roast
                class thread_impl
                {
                public:
+                       typedef int (*thread_callback_t)(void*) func_type, thread_func_type, thread_func_t;
+                       typedef HANDLE thread_handle_t;
+                       
                        struct start_option
                        {
                                LPSECURITY_ATTRIBUTES lpThreadAttributes;
@@ -26,7 +29,7 @@ namespace roast
                        DWORD m_dwId;
                public:
                        thread_handle_t
-                               start(thread_func_t func, int param, void* opt_)
+                               start(thread_func_t func, void* param, void* detail_opt)
                        {
                                start_option opt_default;
                                start_option* opt;