From df95f52583e0f5e3f2a74f7461bb00e2f24b3079 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 30 May 2016 16:56:51 +0100 Subject: py/modthread: Allow to properly set the stack limit of a thread. We rely on the port setting and adjusting the stack size so there is enough room to recover from hitting the stack limit. --- py/mpthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/mpthread.h') diff --git a/py/mpthread.h b/py/mpthread.h index 75e8984ba..7f8d4dec7 100644 --- a/py/mpthread.h +++ b/py/mpthread.h @@ -40,7 +40,7 @@ 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_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); -- cgit v1.2.3