csp_thread: macosx: Use POSIX version of csp_bridge.c
macOS X use pthread and can sefely use POSIX version of it.
-#include <csp/csp.h>
-#include <csp/arch/csp_thread.h>
-#include <csp/csp_debug.h>
-
-static void * csp_bridge(void * param) {
-
- /* Here there be bridging */
- while (1) {
- csp_bridge_work();
- }
-
- return NULL;
-}
-
-int csp_bridge_start(unsigned int task_stack_size, unsigned int task_priority, csp_iface_t * if_a, csp_iface_t * if_b) {
-
- /* Set static references to A/B side of bridge */
- csp_bridge_set_interfaces(if_a, if_b);
-
- static pthread_t handle;
- int ret = csp_macosx_thread_create(csp_bridge, "BRIDGE", task_stack_size, NULL, task_priority, &handle);
-
- if (ret != 0) {
- csp_log_error("Failed to start task");
- return CSP_ERR_NOMEM;
- }
-
- return CSP_ERR_NONE;
-}
+/* Use POSIX implementation */
+#include "../posix/csp_bridge.c"
