// Called from OpenGL thread SharedVariables::~SharedVariables(){ V_free(realline_places); { radium::ScopedMutex locker(&vector_mutex); VECTOR_remove(&g_times_storage, times); } }
static void remove_fxs_from_fxss(vector_t *fxss, struct FXs *fxs){ VECTOR_FOR_EACH(struct FXs *maybe, fxss){ if (maybe->fx->patch==fxs->fx->patch && maybe->fx->effect_num==fxs->fx->effect_num){ VECTOR_remove(fxss, maybe); return; } }END_VECTOR_FOR_EACH; }