From 9172c0cb252faa47f56e61f67ceb213012631de2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 4 May 2016 09:52:19 +0000 Subject: py/modthread: Call mp_thread_start/mp_thread_finish around threads. So the underlying thread implementation can do any necessary bookkeeping. --- py/mpthread.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/mpthread.h') diff --git a/py/mpthread.h b/py/mpthread.h index a92f2d0797..d0164ea29e 100644 --- a/py/mpthread.h +++ b/py/mpthread.h @@ -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); -- cgit v1.2.3