mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Remove boost/thread dependency in tests.
[SVN r85688]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user