Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Dan Sugalski
Well... it's time to start digging into threads more seriously, which Leo's been starting to do. At the moment I'm leaning towards all threads in a thread group sharing string and PMC arenas, and memory pools, as it makes life very much easier in some ways, except... The DOD. And the GC,

Re: Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Vladimir Lipsky
From: Dan Sugalski [EMAIL PROTECTED] So, could someone with some windows experience go digging and find out how one would: 1) Find the address of the base of a thread's stack 3) Find out what a thread's current stack pointer is I would do 1), 3) this way ... thdl = _beginthreadex(NULL,

Re: Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Vladimir Lipsky
And a note for 3): It's importatnt to create a thread with CREATE_SUSPENDED, and at thread runtime we have to suspend thread while checking out its registers so that to get the true values. SuspendThread(thdl); GetThreadContext(thdl, ctx); ... ResumeThread(thdl); 0x4C56

Re: Need some deep non-POSIX thread info (Attention you Windows folks!)

2003-12-30 Thread Dan Sugalski
At 5:07 AM +0300 12/31/03, Vladimir Lipsky wrote: From: Dan Sugalski [EMAIL PROTECTED] So, could someone with some windows experience go digging and find out how one would: 1) Find the address of the base of a thread's stack 3) Find out what a thread's current stack pointer is I would do 1),