@@ -46,14 +46,14 @@ void WithRoot::init(uid_t ruid_ini, uid_t euid_ini) {
4646 euid = euid_ini;
4747}
4848
49- rtapi_task::rtapi_task ()
49+ RtapiTask::RtapiTask ()
5050 : magic{}, id{}, owner{}, uses_fp{}, stacksize{}, prio{}, period{}, nextstart{}, pll_correction{},
5151 pll_correction_limit{}, arg{}, taskcode{}
5252
5353{
5454}
5555
56- struct rtapi_task *RtapiApp::task_array[MAX_TASKS ];
56+ RtapiTask *RtapiApp::task_array[MAX_TASKS ];
5757
5858/* Priority functions. Uspace uses POSIX task priorities. */
5959
@@ -111,8 +111,8 @@ int RtapiApp::prio_next_lower(int prio) const {
111111
112112int RtapiApp::allocate_task_id () {
113113 for (int n = 0 ; n < MAX_TASKS ; n++) {
114- rtapi_task **taskptr = &(task_array[n]);
115- if (__sync_bool_compare_and_swap (taskptr, (rtapi_task *)0 , TASK_MAGIC_INIT ))
114+ RtapiTask **taskptr = &(task_array[n]);
115+ if (__sync_bool_compare_and_swap (taskptr, (RtapiTask *)0 , TASK_MAGIC_INIT ))
116116 return n;
117117 }
118118 return -ENOSPC ;
@@ -138,7 +138,7 @@ int RtapiApp::task_new(
138138 if (n < 0 )
139139 return n;
140140
141- struct rtapi_task *task = do_task_new ();
141+ RtapiTask *task = do_task_new ();
142142 if (stacksize < (1024 * 1024 ))
143143 stacksize = (1024 * 1024 );
144144 task->id = n;
@@ -157,18 +157,18 @@ int RtapiApp::task_new(
157157 return n;
158158}
159159
160- rtapi_task *RtapiApp::get_task (int task_id) {
160+ RtapiTask *RtapiApp::get_task (int task_id) {
161161 if (task_id < 0 || task_id >= MAX_TASKS )
162162 return NULL ;
163163 /* validate task handle */
164- rtapi_task *task = task_array[task_id];
164+ RtapiTask *task = task_array[task_id];
165165 if (!task || task == TASK_MAGIC_INIT || task->magic != TASK_MAGIC )
166166 return NULL ;
167167
168168 return task;
169169}
170170
171- void RtapiApp::unexpected_realtime_delay (rtapi_task *task, int /* nperiod*/ ) {
171+ void RtapiApp::unexpected_realtime_delay (RtapiTask *task, int /* nperiod*/ ) {
172172 static int printed = 0 ;
173173 if (!printed) {
174174 rtapi_print_msg (
0 commit comments