rem: select_sync_pool *pool = *_pool; if (!pool) { pool = new(nothrow) select_sync_pool; if (!pool)
add: select_sync_pool_entry *entry = find_select_sync_pool_entry(pool, sync, ref); if (!entry) { entry = new(nothrow) select_sync_pool_entry; if (!entry)
context: add_select_sync_pool_entry(select_sync_pool **_pool, selectsync *sync,	uint32 ref, uint8 event){	// create the pool, if necessary	select_sync_pool *pool = *_pool;	if (!pool) {		pool = new(nothrow) select_sync_pool;		if (!pool)			return B_NO_MEMORY;		*_pool = pool;	}	// add the entry	status_t error = add_select_sync_pool_entry(pool, sync, ref, event);	// cleanup	if (pool->entries.IsEmpty()) {		delete pool;		*_pool = NULL;	}	return error;}