mirror of
https://github.com/boostorg/thread.git
synced 2026-01-27 19:32:11 +00:00
Examples compile with bbv1
[SVN r35308]
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
// Copyright (C) 2001-2003
|
||||
// William E. Kempf
|
||||
// Copyright (C) 2001-2003 William E. Kempf
|
||||
// Distributed under the Boost Software License, Version 1.0 (See
|
||||
// accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
// Permission to use, copy, modify, distribute and sell this software
|
||||
// and its documentation for any purpose is hereby granted without fee,
|
||||
// provided that the above copyright notice appear in all copies and
|
||||
// that both that copyright notice and this permission notice appear
|
||||
// in supporting documentation. William E. Kempf makes no representations
|
||||
// about the suitability of this software for any purpose.
|
||||
// It is provided "as is" without express or implied warranty.
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
@@ -43,7 +38,8 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
int begin, end, buffered;
|
||||
int begin, end;
|
||||
std::vector<int>::size_type buffered;
|
||||
std::vector<int> circular_buf;
|
||||
boost::condition buffer_not_full, buffer_not_empty;
|
||||
boost::mutex monitor;
|
||||
|
||||
Reference in New Issue
Block a user