Remove boost/thread dependency in tests.

[SVN r85688]
This commit is contained in:
Ion Gaztañaga
2013-09-15 19:50:54 +00:00
parent 2e9c9f0eb8
commit 868981c178
12 changed files with 337 additions and 241 deletions

View File

@@ -15,10 +15,10 @@
#include <boost/interprocess/containers/map.hpp>
#include <boost/interprocess/containers/set.hpp>
#include <boost/interprocess/allocators/node_allocator.hpp>
#include <boost/interprocess/detail/os_thread_functions.hpp>
#include <vector>
#include <cstddef>
#include <limits>
#include <boost/thread.hpp>
#include <memory>
#include <string>
#include "get_process_id_name.hpp"
@@ -251,8 +251,9 @@ bool test_buffer_overflow()
pmessage_queue = ptr.get();
//Launch the receiver thread
boost::thread thread(&receiver);
boost::thread::yield();
boost::interprocess::ipcdetail::OS_thread_t thread;
boost::interprocess::ipcdetail::thread_launch(thread, &receiver);
boost::interprocess::ipcdetail::thread_yield();
int nummsg = NumMsg;
@@ -260,7 +261,7 @@ bool test_buffer_overflow()
pmessage_queue->send(msgsend, MsgSize, 0);
}
thread.join();
boost::interprocess::ipcdetail::thread_join(thread);
}
boost::interprocess::message_queue::remove(test::get_process_id_name());
return true;