Home | History | Annotate | Download | only in jni
      1 #include <pthread.h>
      2 
      3 static int testval = 4;
      4 void dodgy_function(pthread_key_t* key)
      5 {
      6     pthread_setspecific(*key, &testval);
      7 }
      8 
      9 int main(void)
     10 {
     11     pthread_key_t mykey;
     12     pthread_key_create(&mykey, NULL);
     13     dodgy_function(&mykey);
     14     return 0;
     15 }
     16