コード例 #1
0
ファイル: main.c プロジェクト: wuwx/simba
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);
}
コード例 #2
0
ファイル: module_kernel.c プロジェクト: eerimoq/pumbaa
static mp_obj_t module_thrd_get_prio()
{
    return (MP_OBJ_NEW_SMALL_INT(thrd_get_prio()));
}