Skip to content

Commit 84f4194

Browse files
committed
break circular dependency: random/sync -> util -> random/sync
1 parent 3b84ebb commit 84f4194

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/random.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
#include <compat.h> // for Windows API
1212
#include <wincrypt.h>
1313
#endif
14-
#include <util.h> // for LogPrint()
15-
#include <utilstrencodings.h> // for GetTime()
14+
#include <logging.h> // for LogPrint()
15+
#include <utiltime.h> // for GetTime()
1616

1717
#include <stdlib.h>
1818
#include <chrono>
1919
#include <thread>
2020

2121
#ifndef WIN32
22+
#include <fcntl.h>
2223
#include <sys/time.h>
2324
#endif
2425

src/sync.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
#include <sync.h>
66

7-
#include <memory>
8-
#include <set>
9-
#include <util.h>
7+
#include <logging.h>
108
#include <utilstrencodings.h>
119

1210
#include <stdio.h>
1311

12+
#include <map>
13+
#include <memory>
14+
#include <set>
15+
1416
#ifdef DEBUG_LOCKCONTENTION
1517
#if !defined(HAVE_THREAD_LOCAL)
1618
static_assert(false, "thread_local is not supported");

0 commit comments

Comments
 (0)