2020-04-10 01:06:33 +00:00
|
|
|
#ifndef cwThreadMach_H
|
|
|
|
#define cwThreadMach_H
|
|
|
|
|
|
|
|
namespace cw
|
|
|
|
{
|
|
|
|
namespace thread_mach
|
|
|
|
{
|
|
|
|
typedef handle<struct thread_mach_str> handle_t;
|
|
|
|
typedef thread::cbFunc_t threadFunc_t;
|
|
|
|
|
2021-01-20 18:11:44 +00:00
|
|
|
rc_t create( handle_t& hRef, threadFunc_t threadFunc=nullptr, void* contextArray=nullptr, unsigned contexRecdByteN=0, unsigned threadN=0 );
|
2020-04-10 01:06:33 +00:00
|
|
|
rc_t destroy( handle_t& hRef );
|
2021-01-20 18:11:44 +00:00
|
|
|
rc_t add( handle_t h, threadFunc_t threadFunc, void* arg );
|
2020-04-10 01:06:33 +00:00
|
|
|
rc_t start( handle_t h );
|
2021-01-20 18:11:44 +00:00
|
|
|
rc_t stop( handle_t h );
|
|
|
|
bool is_shutdown( handle_t h );
|
2020-04-10 01:06:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|