summaryrefslogtreecommitdiffstats
path: root/rtemslwip/include/arch/sys_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtemslwip/include/arch/sys_arch.h')
-rw-r--r--rtemslwip/include/arch/sys_arch.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/rtemslwip/include/arch/sys_arch.h b/rtemslwip/include/arch/sys_arch.h
index 5fbdc73..c63d28b 100644
--- a/rtemslwip/include/arch/sys_arch.h
+++ b/rtemslwip/include/arch/sys_arch.h
@@ -117,4 +117,20 @@ sys_arch_data_sync_barier(void)
#endif
}
+/*
+ * This must match the definition in lwIP's lwip/sys.h
+ * It can't be included from there since this file is included there before the
+ * typedef.
+ */
+typedef void (*lwip_thread_fn)(void *arg);
+
+/* This is a thread creator that can be passed CPU affinity */
+sys_thread_t sys_thread_new_affinity(
+ const char *name,
+ lwip_thread_fn function,
+ void *arg,
+ int stack_size,
+ int prio,
+ cpu_set_t *set
+);
#endif /* __ARCH_SYS_ARCH_H__ */