Have got two version that work now. It was only trivial after all. I'm pleased that i understand a bit more about the heap and threads/thread-specific-data etc. Thanks for the reply. Did talk to someone who said that thread-specific-data was a bad choice for this application. I'm sure it is overcomplicating things too much for such a trivial program. Sorry to bother this forum with such a trivial program. I guess most of you would have thought it was an april fool!
regards
Last edited by unixjingleman; 17th April 2013 at 06:41 PM.
|