src/thread/beos/SDL_systls.c
changeset 7392 7e32fcb41b44
parent 7391 a29895dc5e9a
child 7393 358696c354a8
equal deleted inserted replaced
7391:a29895dc5e9a 7392:7e32fcb41b44
    90         }
    90         }
    91         data->limit = newlimit;
    91         data->limit = newlimit;
    92         for (i = oldlimit; i < newlimit; ++i) {
    92         for (i = oldlimit; i < newlimit; ++i) {
    93             data->data[i] = NULL;
    93             data->data[i] = NULL;
    94         }
    94         }
    95         if (!tls_set(thread_local_storage, data)) {
    95         tls_set(thread_local_storage, data);
    96             return SDL_SetError("TlsSetValue() failed");
       
    97         }
       
    98     }
    96     }
    99 
    97 
   100     data->data[id-1] = SDL_const_cast(void*, value);
    98     data->data[id-1] = SDL_const_cast(void*, value);
   101     return 0;
    99     return 0;
   102 }
   100 }