You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
464 B

#pragma once
#include "osbasic_h.hpp"
namespace iflytop {
class ZOSThread {
osThreadId _defaultTaskHandle;
uint32_t _stack_size;
osPriority _priority;
function<void()> _func;
const char* _threadname;
public:
void init(const char* threadname, int stack_size = 1024, osPriority priority = osPriorityNormal);
void run(function<void()> func);
void waitingForStop();
public:
void __callfunc();
};
} // namespace iflytop