Re: [PATCH] MSVC: Windows-native implementation for subset of Pthreads API
- From
Andrzej K. Haczewski <ahaczewski@gmail.com>
- Date
- Nov 4, 2009, 22:50 UTC
- Message-ID
- <4AF20534.2030004@gmail.com>
- In-Reply-To
- <40aa078e0911041341s1adbbf31t6961207ba9c7905b@mail.gmail.com>
Erik Faye-Lund pisze:
> Couldn't the windows version of pthread_create have a wrapper > function, that corrected the calling convention, much like the > function run_thread that start_async in run-command.c has?
Can't be done without allocations. I'd have to pass to that wrapping thread function an address of original function *and* an original argument, and there's no way to pack that as one void*.
-- Andrzej