Re: [PATCH] MSVC: Windows-native implementation for subset of Pthreads API
- From
Andrzej K. Haczewski <ahaczewski@gmail.com>
- Date
- Nov 5, 2009, 20:38 UTC
- Message-ID
- <16cee31f0911051238v71ec4b57s415efb7bb48999d1@mail.gmail.com>
- In-Reply-To
- <alpine.LFD.2.00.0911051422590.10340@xanadu.home>
2009/11/5 Nicolas Pitre <nico@fluxnic.net>:
> Why not? At least gcc is quite happy with such a construct. It > probably makes a copy of the stack before passing it though.
Err... my mind is rotted with all that ugly java, c#, python and ruby, even c++. I should start taking some medications I suppose... what was I thinking is that C can't copy-construct a struct. Damn, too much sun (of java fame)...
That way I rediscovered simple struct construct...man I missed C so much :)
Anyway, the solution with passing pthread_t as pointer saves some stack, so it's probably not that bad.
-- Andrzej