static mp_obj_t module_thrd_set_prio(mp_obj_t thrd_in, mp_obj_t prio_in) { thrd_set_prio((struct thrd_t *)(uintptr_t)mp_obj_get_int(thrd_in), mp_obj_get_int(prio_in)); return (mp_const_none); }
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); }