The output was confusing when the sync point's dummy handler was shown.
This patch should be backported to 1.8 to help with troubleshooting.
__asm __volatile("" ::: "memory");
}
+/* Dummy I/O handler used by the sync pipe.*/
+void thread_sync_io_handler(int fd);
+
#endif /* _COMMON_HATHREADS_H */
(fdt.iocb == conn_fd_handler) ? "conn_fd_handler" :
(fdt.iocb == dgram_fd_handler) ? "dgram_fd_handler" :
(fdt.iocb == listener_accept) ? "listener_accept" :
+ (fdt.iocb == thread_sync_io_handler) ? "thread_sync_io_handler" :
"unknown",
fdt.thread_mask, fdt.update_mask);
#endif
/* Dummy I/O handler used by the sync pipe.*/
-static void thread_sync_io_handler(int fd) { }
+void thread_sync_io_handler(int fd)
+{
+}
/* Initializes the sync point. It creates a pipe used by threads to wakup all
* others when a sync is requested. It also initialize the mask of all create