`posix_getpid()` requires posix extension that is not available on Windows platform. You can use `getmypid` instead