break circular dependency: random/sync -> util -> random/sync

This commit is contained in:
Chun Kuan Lee 2018-05-15 09:27:14 +00:00
parent 3b84ebb5bc
commit 84f41946b9
2 changed files with 8 additions and 5 deletions

View file

@ -11,14 +11,15 @@
#include <compat.h> // for Windows API
#include <wincrypt.h>
#endif
#include <util.h> // for LogPrint()
#include <utilstrencodings.h> // for GetTime()
#include <logging.h> // for LogPrint()
#include <utiltime.h> // for GetTime()
#include <stdlib.h>
#include <chrono>
#include <thread>
#ifndef WIN32
#include <fcntl.h>
#include <sys/time.h>
#endif

View file

@ -4,13 +4,15 @@
#include <sync.h>
#include <memory>
#include <set>
#include <util.h>
#include <logging.h>
#include <utilstrencodings.h>
#include <stdio.h>
#include <map>
#include <memory>
#include <set>
#ifdef DEBUG_LOCKCONTENTION
#if !defined(HAVE_THREAD_LOCAL)
static_assert(false, "thread_local is not supported");