mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py/modthread: Call mp_thread_start/mp_thread_finish around threads.
So the underlying thread implementation can do any necessary bookkeeping.
This commit is contained in:
@@ -41,6 +41,8 @@ struct _mp_state_thread_t;
|
||||
struct _mp_state_thread_t *mp_thread_get_state(void);
|
||||
void mp_thread_set_state(void *state);
|
||||
void mp_thread_create(void *(*entry)(void*), void *arg, size_t stack_size);
|
||||
void mp_thread_start(void);
|
||||
void mp_thread_finish(void);
|
||||
void mp_thread_mutex_init(mp_thread_mutex_t *mutex);
|
||||
int mp_thread_mutex_lock(mp_thread_mutex_t *mutex, int wait);
|
||||
void mp_thread_mutex_unlock(mp_thread_mutex_t *mutex);
|
||||
|
||||
Reference in New Issue
Block a user