printf("dettach thread 1, err=%d\n", err);
assert(err == 0);
- err = fosa_ads_set_appscheduled (tid2, false);
- printf("dettach thread 2, err=%d\n", err);
- assert(err == 0);
-
err = fosa_ads_get_appscheduled (tid1, &is_appsched);
- printf("thread 1 is dettached? %d, err=%d\n", is_appsched, err);
+ printf("thread 1 is dettached? %d, err=%d\n", !is_appsched, err);
assert(err == 0);
err = fosa_ads_get_appscheduled (tid2, &is_appsched);
- printf("thread 2 is dettached? %d, err=%d\n", is_appsched, err);
- assert(err == 0);
-
- //////////////////////////////////////////////////////////////
- // 2f) Cause errors by change sched params of dettached threads
- //////////////////////////////////////////////////////////////
- printf("--------------------------------------------------\n");
- printf("2f) Cause errors by change sched params of dettached threads \n");
-
- err = fosa_ads_set_appsched_params(tid2, (void *)¶ms, sizeof(params));
- printf("urgency of thread 2 set to %d, err=%d\n", params.prio, err);
+ printf("thread 2 is dettached? %d, err=%d\n", !is_appsched, err);
assert(err == 0);
sleep(1000);