@@ -173,6 +173,31 @@ void am_pal_task_wait(int task);
173173 */
174174int am_pal_task_get_own_id (void );
175175
176+ /**
177+ * Block until all tasks are ready to run.
178+ *
179+ * Prevents using tasks before they are ready to run.
180+ * To be run once at the start of tasks created with am_pal_task_create() API.
181+ */
182+ void am_pal_task_wait_all (void );
183+
184+ /**
185+ * Lock all tasks until am_pal_task_unlock_all() is called.
186+ *
187+ * Only used at boot-up to synchronize tasks execution.
188+ */
189+ void am_pal_task_lock_all (void );
190+
191+ /**
192+ * Unlock all tasks.
193+ *
194+ * All tasks blocked on am_pal_task_wait_all() are unblocked.
195+ */
196+ void am_pal_task_unlock_all (void );
197+
198+ /** Run all PAL tasks */
199+ void am_pal_task_run_all (void );
200+
176201/**
177202 * Get current time in milliseconds.
178203 *
@@ -312,31 +337,6 @@ void am_pal_on_idle(void);
312337/** Return the number of CPU cores. */
313338int am_pal_get_cpu_count (void );
314339
315- /**
316- * Block until all tasks are ready to run.
317- *
318- * Prevents using tasks before they are ready to run.
319- * To be run once at the start of tasks created with am_pal_task_create() API.
320- */
321- void am_pal_task_wait_all (void );
322-
323- /**
324- * Lock all tasks until am_pal_task_unlock_all() is called.
325- *
326- * Only used at boot-up to synchronize tasks execution.
327- */
328- void am_pal_task_lock_all (void );
329-
330- /**
331- * Unlock all tasks.
332- *
333- * All tasks blocked on am_pal_task_wait_all() are unblocked.
334- */
335- void am_pal_task_unlock_all (void );
336-
337- /** Run all PAL tasks */
338- void am_pal_task_run_all (void );
339-
340340#ifdef __cplusplus
341341}
342342#endif
0 commit comments