/[pdpsoft]/trunk/grid-mw-security/ees/src/aos/aos.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/aos/aos.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1358 by aramv, Mon Jan 11 10:30:06 2010 UTC revision 1359 by aramv, Mon Jan 11 13:21:22 2010 UTC
# Line 26  aos_storage_t * aos_get_storage(){ Line 26  aos_storage_t * aos_get_storage(){
26    
27    if(!(storage = pthread_getspecific(_aos_key))) {    if(!(storage = pthread_getspecific(_aos_key))) {
28      if((storage = calloc(1, sizeof(aos_storage_t)))){      if((storage = calloc(1, sizeof(aos_storage_t)))){
29        if((storage->list_contexts = calloc(1, sizeof(aos_context_t)))){        pthread_setspecific(_aos_key, storage);
30          pthread_setspecific(_aos_key, storage);        printf("Created new TLS at %p\n", storage);
         printf("Created new TLS at %p\n", storage);  
       }  
31      }      }
32    } else {    } else {
33      printf("Found existing TLS at %p\n", storage);      printf("Found existing TLS at %p\n", storage);

Legend:
Removed from v.1358  
changed lines
  Added in v.1359

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28