Home | History | Annotate | Download | only in src

Lines Matching refs:storage

86 wsbmBufStorageInit(struct _WsbmBufStorage *storage,
89 int ret = WSBM_MUTEX_INIT(&storage->mutex);
93 storage->pool = pool;
94 wsbmAtomicSet(&storage->refCount, 1);
95 wsbmAtomicSet(&storage->onList, 0);
96 storage->destroyContainer = NULL;
101 wsbmBufStorageTakedown(struct _WsbmBufStorage *storage)
103 WSBM_MUTEX_FREE(&storage->mutex);
109 struct _WsbmBufStorage *storage = *pStorage;
112 if (storage == NULL)
115 if (wsbmAtomicDecZero(&storage->refCount)) {
116 if (storage->destroyContainer)
117 storage->destroyContainer(storage->destroyArg);
118 storage->pool->destroy(&storage);