maix::thread

maix.thread module

This is maix::thread module of MaixCDK.
All of these elements are in namespace maix::thread.

For MaixCDK developer: DO NOT edit this doc file manually, this doc is auto generated!

Module

No module

Enum

Variable

Function

Class

Thread

thread class

C++ defination code:

class Thread

Thread

create thread

item description
type func
param func: direction [in], thread function, one args parameter, void* type, no return value
args: direction [in], thread function parameter
static False

C++ defination code:

Thread(std::function<void(void *)> func, void *args = nullptr)

join

wait thread exit

item description
type func
static False

C++ defination code:

void join()

detach

detach thread, detach will auto start thread and you can't use join anymore.

item description
type func
static False

C++ defination code:

void detach()

joinable

Check if thread is joinable

item description
type func
return true if thread is joinable
static False

C++ defination code:

bool joinable()