Fix debug build

This commit is contained in:
Leith Bade
2014-12-04 23:21:23 +11:00
parent 1c0396690e
commit 20584a57dd
2 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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.