5 // This shows that putting a segment pointer into a thread-specific data
6 // area and then getting it out again doesn't lose info -- even though the
7 // key allocation/getting is done on the real CPU where the skin can't see,
8 // the get/set of the info is done using that key on the simd CPU where it
9 // can see, so everything works out fine.
15 char y __attribute__((unused));
22 assert( 0 == pthread_key_create ( &key, NULL ) );
23 assert( 0 == pthread_setspecific( key, x ) );
24 z = (char*)pthread_getspecific( key );
29 // ensure the key went in and out correctly