2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-22 17:52:18 +00:00

Modified to use Boost.Function for the threadproc.

[SVN r10437]
This commit is contained in:
William E. Kempf
2001-06-26 19:20:11 +00:00
parent 1d6f10702d
commit 2febaf386c
5 changed files with 52 additions and 24 deletions

View File

@@ -48,7 +48,7 @@ public:
return buf;
}
static void do_sender_thread(void*)
static void do_sender_thread()
{
for (int n = 0; n < ITERS; ++n)
{
@@ -60,7 +60,7 @@ public:
}
}
static void do_receiver_thread(void*)
static void do_receiver_thread()
{
int n;
do
@@ -83,8 +83,8 @@ void do_test(M* dummy=0)
{
typedef buffer_t<M> buffer_type;
buffer_type::get_buffer();
boost::thread::create(&buffer_type::do_sender_thread, 0);
boost::thread::create(&buffer_type::do_receiver_thread, 0);
boost::thread::create(&buffer_type::do_sender_thread);
boost::thread::create(&buffer_type::do_receiver_thread);
boost::thread::join_all();
}