Skip to content

Commit 98cf279

Browse files
committed
test
1 parent 0cabea5 commit 98cf279

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/geode/basic/database.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ namespace geode
5656
{
5757
terminate_storage();
5858
std::unique_lock< std::mutex > locking{ lock_ };
59-
clean_queue();
60-
while( !condition_.wait_for(
61-
locking, std::chrono::milliseconds( 10 ), [this] {
62-
return queue_.empty();
63-
} ) )
64-
;
59+
index_t count{ 0 };
60+
do
6561
{
66-
condition_.notify_all();
62+
DEBUG( count++ );
6763
clean_queue();
68-
}
64+
} while( !condition_.wait_for(
65+
locking, std::chrono::milliseconds( 10 ), [this] {
66+
return queue_.empty();
67+
} ) );
68+
DEBUG( "end" );
6969
}
7070

7171
bool expired() const

0 commit comments

Comments
 (0)