int test_priority(struct harness_t *harness_p) { BTASSERT(thrd_get_prio() == 0); BTASSERT(thrd_set_prio(thrd_self(), 1) == 0); BTASSERT(thrd_get_prio() == 1); return (0); }
static mp_obj_t module_thrd_get_prio() { return (MP_OBJ_NEW_SMALL_INT(thrd_get_prio())); }