Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #1075

pthread get/set specific for local buffers

Received by 10.224.27.14 with SMTP id g14mr5945619qac.1.1347814550512; Sun, 16 Sep 2012 09:55:50 -0700 (PDT)
Received by 10.52.92.207 with SMTP id co15mr388785vdb.9.1347814550438; Sun, 16 Sep 2012 09:55:50 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!v8no3939069qap.0!news-out.google.com!t12ni8qak.0!nntp.google.com!v8no3939061qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.programming.threads
Date Sun, 16 Sep 2012 09:55:50 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=129.192.197.4; posting-account=YM05VwoAAABfhqQvMhVh5BYqiwLHuZYv
NNTP-Posting-Host 129.192.197.4
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <fdd5b92c-6ca1-4564-aedc-42b01c05cd37@googlegroups.com> (permalink)
Subject pthread get/set specific for local buffers
From sinbad.sinbad@gmail.com
Injection-Date Sun, 16 Sep 2012 16:55:50 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.programming.threads:1075

Show key headers only | View raw


hi,

In one of my program, there came a need where i should
have a thread specific buffer, i found that pthread_key_t
and pthread_getspecific() pthread_setspecific() family of
functions are used exactly for that purpose, my question
is it safe to use the above functions, are there any things
i should keep in mind, finally is there any better solution
for this.

cheers
sinbad

Back to comp.programming.threads | Previous | NextNext in thread | Find similar


Thread

pthread get/set specific for local buffers sinbad.sinbad@gmail.com - 2012-09-16 09:55 -0700
  Re: pthread get/set specific for local buffers Mark <i@dontgetlotsofspamanymore.invalid> - 2012-09-17 10:25 +0100

csiph-web