Missed that file in the commit for r25812.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25816 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+2
-5
@@ -283,9 +283,9 @@ static status_t write_cached_block(block_cache *cache, cached_block *block,
|
|||||||
|
|
||||||
|
|
||||||
static DoublyLinkedList<block_cache> sCaches;
|
static DoublyLinkedList<block_cache> sCaches;
|
||||||
static mutex sCachesLock;
|
static mutex sCachesLock = MUTEX_INITIALIZER("block caches");
|
||||||
static sem_id sEventSemaphore;
|
static sem_id sEventSemaphore;
|
||||||
static mutex sNotificationsLock;
|
static mutex sNotificationsLock = MUTEX_INITIALIZER("block cache notifications");
|
||||||
static thread_id sNotifierWriterThread;
|
static thread_id sNotifierWriterThread;
|
||||||
static DoublyLinkedListLink<block_cache> sMarkCache;
|
static DoublyLinkedListLink<block_cache> sMarkCache;
|
||||||
// TODO: this only works if the link is the first entry of block_cache
|
// TODO: this only works if the link is the first entry of block_cache
|
||||||
@@ -1622,9 +1622,6 @@ block_cache_init(void)
|
|||||||
if (sBlockCache == NULL)
|
if (sBlockCache == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
mutex_init(&sCachesLock, "block caches");
|
|
||||||
mutex_init(&sNotificationsLock, "block cache notifications");
|
|
||||||
|
|
||||||
new (&sCaches) DoublyLinkedList<block_cache>;
|
new (&sCaches) DoublyLinkedList<block_cache>;
|
||||||
// manually call constructor
|
// manually call constructor
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user