Skip to content

Commit 64f5aed

Browse files
committed
Disable pthread tests for win
1 parent abf59d2 commit 64f5aed

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/rpp/shm_mutex.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if __linux__
12
#include "shm_mutex.h"
23
#include "debugging.h"
34
#include <condition_variable>
@@ -75,3 +76,5 @@ namespace rpp {
7576
}
7677

7778
} // namespace rpp
79+
80+
#endif // __linux__

src/rpp/shm_mutex.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#if __linux__
23
#include <pthread.h>
34
#include <chrono>
45
#include <mutex>
@@ -130,3 +131,5 @@ namespace rpp {
130131
};
131132

132133
} // namespace rpp
134+
135+
#endif // __linux__

tests/test_shm_concurrent_queue.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifdef __linux__
2+
13
#include <rpp/concurrent_queue.h>
24
#include <rpp/shm_mutex.h>
35
#include <rpp/future.h>
@@ -618,3 +620,5 @@ TestImpl(test_concurrent_queue_pthread)
618620
print_info("AVERAGE wait_pop_interval consumer elapsed: %.2f ms %.1f Mitems/s\n", avg_time, Mitems_per_sec);
619621
}
620622
};
623+
624+
#endif // __linux__

0 commit comments

Comments
 (0)