maix.thread

maix.thread module

You can use maix.thread to access this module with MaixPy
This module is generated from MaixCDK

Module

No module

Enum

Variable

Function

Class

Thread

item doc
brief thread class

C++ defination code:

class Thread

__init__

item doc
type func
brief create thread
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

item doc
type func
brief wait thread exit
static False

C++ defination code:

void join()

detach

item doc
type func
brief detach thread
static False

C++ defination code:

void detach()

joinable

item doc
type func
brief Check if thread is joinable
return true if thread is joinable
static False

C++ defination code:

bool joinable()