state-threads
[Top] [All Lists]

Re: per-thread global variables

To: matthijs@xxxxxxxxxxxxx (Matthijs Sypkens Smit)
Subject: Re: per-thread global variables
From: mja@xxxxxxxxxxxxxxxxxxx (Mike Abbott)
Date: Mon, 25 Sep 2000 16:22:26 -0700 (PDT)
Cc: state-threads@xxxxxxxxxxx
In-reply-to: <00092600080101.06092@helena> from "Matthijs Sypkens Smit" at Sep 26, 2000 12:08:01 AM
Sender: owner-state-threads@xxxxxxxxxxx
> I'm currently working on a project to create a client-server implementation 
> of a differential equation analysis tool.
> [...]

Sounds like you want to use thread-specific data.  Put all the data for
each connection in a struct and store a pointer to it as TSD.
-- 
Michael J. Abbott        mja@xxxxxxx        http://reality.sgi.com/mja/

<Prev in Thread] Current Thread [Next in Thread>