diff --git a/src/pal/pal_netbsd.h b/src/pal/pal_netbsd.h index 377c1cc..7539470 100644 --- a/src/pal/pal_netbsd.h +++ b/src/pal/pal_netbsd.h @@ -5,6 +5,16 @@ # include +/** + * We skip the pthread cancellation checkpoints by reaching directly + * the following syscalls so we avoid the possible pthread + * allocation initialization timing issues. + * @{ + */ +extern "C" ssize_t _sys_writev(int fd, const struct iovec* iov, int iovcnt); +extern "C" int _sys_fsync(int fd); +/// @} + namespace snmalloc { /** @@ -13,7 +23,7 @@ namespace snmalloc * This adds NetBSD-specific aligned allocation to the generic BSD * implementation. */ - class PALNetBSD : public PALBSD_Aligned + class PALNetBSD : public PALBSD_Aligned { public: /**