Lines Matching full:app_data
161 libdata_t *app_data;
174 app_data = (libdata_t *) get_app_data(id);
176 if(!app_data) {
187 if(!(app_data = (libdata_t *) get_app_data(id))) {
188 app_data = malloc(sizeof(libdata_t));
190 if(app_data) {
191 memset(app_data, 0, sizeof(libdata_t));
193 app_data->tenbytes = malloc(10);
194 app_data->lock = NXMutexAlloc(0, 0, &liblock);
196 if(!app_data->tenbytes || !app_data->lock) {
197 if(app_data->lock)
198 NXMutexFree(app_data->lock);
200 free(app_data);
201 app_data = (libdata_t *) NULL;
205 if(app_data) {
214 err = set_app_data(gLibId, app_data);
217 free(app_data);
218 app_data = (libdata_t *) NULL;
228 app_data->perthreadkey = key;
237 if(app_data) {
238 key = app_data->perthreadkey;
272 *appData = app_data;