| | |
| | | #include <stdio.h> |
| | | #include <string> |
| | | #include <vector> |
| | | #include <thread> |
| | | #include "defs.h" |
| | | #include "pubsub.h" |
| | | #include "socket.h" |
| | | #include "util.h" |
| | | #include <atomic> |
| | | #include <boost/uuid/uuid_generators.hpp> |
| | | #include <boost/uuid/uuid_io.hpp> |
| | | #include "pubsub.h" |
| | | #include "defs.h" |
| | | #include "util.h" |
| | | #include "socket.h" |
| | | #include <stdio.h> |
| | | #include <string> |
| | | #include <thread> |
| | | #include <vector> |
| | | |
| | | template <class A, class B> struct IsSameType { static const bool value = false; }; |
| | | template <class A> struct IsSameType<A,A> { static const bool value = true; }; |
| | | |
| | | template <class A, class B> |
| | | struct IsSameType { |
| | | static const bool value = false; |
| | | }; |
| | | template <class A> |
| | | struct IsSameType<A, A> { |
| | | static const bool value = true; |
| | | }; |
| | | |
| | | BOOST_AUTO_TEST_CASE(Temp) |
| | | { |
| | |
| | | |
| | | std::unique_lock<std::mutex> lk(mutex); |
| | | cv.wait(lk); |
| | | |
| | | }; |
| | | |
| | | auto Pub = [&](const std::string &topic) { |
| | |
| | | bus.Stop(); |
| | | } |
| | | |
| | | inline int MyMin(int a, int b) { |
| | | inline int MyMin(int a, int b) |
| | | { |
| | | printf("MyMin\n"); |
| | | return a < b ? a : b; |
| | | } |
| | | |
| | | int test_main(int argc, char *argv[]) |
| | | { |
| | | printf("test main\n"); |
| | |
| | | |
| | | return 0; |
| | | } |
| | | |