Fix debug build
This commit is contained in:
@@ -240,7 +240,7 @@ void Map::stop(stop_callback cb, void *data) {
|
||||
}
|
||||
|
||||
void Map::pause(bool waitForPause) {
|
||||
assert(uv_thread_self() == mainThread);
|
||||
assert(std::this_thread::get_id() == mainThread);
|
||||
assert(async);
|
||||
mutexRun.lock();
|
||||
pausing = true;
|
||||
@@ -258,7 +258,7 @@ void Map::pause(bool waitForPause) {
|
||||
}
|
||||
|
||||
void Map::resume() {
|
||||
assert(uv_thread_self() == mainThread);
|
||||
assert(std::this_thread::get_id() == mainThread);
|
||||
assert(async);
|
||||
|
||||
mutexRun.lock();
|
||||
|
||||
@@ -136,7 +136,7 @@ void FileRequestBaton::file_read(uv_fs_t *req) {
|
||||
}
|
||||
|
||||
void FileRequestBaton::file_closed(uv_fs_t *req) {
|
||||
assert(std::this_thread::get_id() == reinterpret_cast<FileRequestBaton *>(req->data)->thread_id);
|
||||
assert(std::this_thread::get_id() == reinterpret_cast<FileRequestBaton *>(req->data)->threadId);
|
||||
|
||||
if (req->result < 0) {
|
||||
// Closing the file failed. But there isn't anything we can do.
|
||||
|
||||
Reference in New Issue
Block a user