This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: cygthread::cygthread() hang
Pierre A. Humblet wrote:
Shouldn't it simply be MEM_RELEASE? Right now the committed memory would
change state to reserved, no freed.
You're correct. The msdn documents are clearer than my book -- only one call
to VirtualFree() should be needed. Two changes appear to be needed though:
- change from MEM_DECOMMIT to MEM_RELEASE
- change the region length to 0, meaning "the whole memory region"
--
Joe Buehler