Files
ports/lang/micropython/files/mpthreadport.h
T
Xin LI 6c608356b6 lang/micropython: upgrade to 1.28.0
- Add mbedtls and micropython-lib submodules via GH_TUPLE
 - Use POSIX semaphores for mp_thread_mutex_t to fix cross-thread unlock
   on FreeBSD (PTHREAD_MUTEX_ERRORCHECK rejects non-owner unlock with EPERM)
 - Remove -Werror from mpy-cross and unix port Makefiles
 - Fix select_poll_fd test: FreeBSD poll(2) checks kern.maxfilesperproc
   (not RLIMIT_NOFILE), so print SKIP instead of assert False when 6000
   fds do not trigger EINVAL
 - Update ffi test patches for FreeBSD libc.so.7
 - Compile ffi_lib.so in pre-test for ffi_int_* tests
2026-05-18 21:53:57 -07:00

10 lines
339 B
C

/*
* Stub mpthreadport.h for mpy-cross.
* mpy-cross does not use threading, but qstr generation for the unix port
* preprocesses mpy-cross sources with -DMICROPY_PY_THREAD=1, requiring this
* header to be present.
*/
#include <pthread.h>
typedef pthread_mutex_t mp_thread_mutex_t;
typedef pthread_mutex_t mp_thread_recursive_mutex_t;