Back to index

glibc  2.9
Defines | Functions
libc-tsd.h File Reference
#include <linuxthreads/descr.h>
#include <tls.h>
#include <bits/libc-lock.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __libc_tsd_define(CLASS, KEY)   CLASS void *__libc_tsd_##KEY##_data;
#define __libc_tsd_address(KEY)
#define __libc_tsd_get(KEY)
#define __libc_tsd_set(KEY, VALUE)

Functions

void ** __pthread_internal_tsd_address (int)
void * __pthread_internal_tsd_get (int)
int __pthread_internal_tsd_set (int, const void *)

Define Documentation

#define __libc_tsd_address (   KEY)
Value:
__libc_maybe_call2 (pthread_internal_tsd_address,                     \
                    (_LIBC_TSD_KEY_##KEY), &__libc_tsd_##KEY##_data)
#define __libc_tsd_define (   CLASS,
  KEY 
)    CLASS void *__libc_tsd_##KEY##_data;
#define __libc_tsd_get (   KEY)
Value:
__libc_maybe_call2 (pthread_internal_tsd_get,                         \
                    (_LIBC_TSD_KEY_##KEY), __libc_tsd_##KEY##_data)
#define __libc_tsd_set (   KEY,
  VALUE 
)
Value:
__libc_maybe_call2 (pthread_internal_tsd_set,                         \
                    (_LIBC_TSD_KEY_##KEY, (VALUE)),                   \
                     (__libc_tsd_##KEY##_data = (VALUE), 0))

Function Documentation

Definition at line 229 of file specific.c.

int __pthread_internal_tsd_set ( int  ,
const void *   
)

Definition at line 220 of file specific.c.

{
  pthread_descr self = thread_self();

  THREAD_SETMEM_NC(self, p_libc_specific[key], (void *) pointer);
  return 0;
}