worker and HRT threads for Qurt platform (#20739)

* Getting work manager and hrt threads ready for Qurt platform
This commit is contained in:
Eric Katzfey
2022-12-12 14:25:28 -05:00
committed by GitHub
parent dc0823062e
commit 9b3feee6ee
3 changed files with 8 additions and 8 deletions
@@ -104,6 +104,13 @@ typedef struct {
// Qurt has no fsync implementation so need to declare one here
// and then define a fake one in the Qurt platform code.
void fsync(int fd);
// Qurt doesn't have a way to set the scheduler policy. It is always, essentially,
// SCHED_FIFO. So have to add a fake function for the code that tries to set it.
#include <pthread.h>
__EXPORT int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy);
// Qurt POSIX implementation doesn't define the SIGCONT signal so we just map it
// to a reasonable alternative
#define SIGCONT SIGALRM
#endif
__EXPORT int px4_open(const char *path, int flags, ...);