This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: pthreads


On Mon, Mar 19, 2001 at 11:32:09PM +1100, Robert Collins wrote:
>Any objections if I do a <sarcastic>little bit</sarcastic> of
>housekeeping in pthread.h thread.cc & thread.h ? There's a few serious
>issues there with the type definitions (which I blindly followed for
>pthread_cond* - making it worse :[).

No objections to cleanup at all.  I've never really liked this code.

>I believe I can make it leaner and meaner, and more compatible/easy to
>build on in future....
>
>Fortunately I believe this can be done without breaking existing
>compiled programs (I'll especially test for this).
>
>As a side effect it will make some of it 64 bit clean.
>
>Rob
>
>* and rewrite the guts of thread.cc & thread.h to allocate new objects
>on the stack and store the pointer rather than an index. This also
>removes the overhead of walking the list for user space requests, and
>simplifies the code.

How can you allocate things on the stack?  That doesn't seem possible.
Do you mean the heap?

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]