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

Merge minor changes from main branch.

[SVN r22319]
This commit is contained in:
Michael Glassford
2004-02-19 01:00:42 +00:00
parent 0804944002
commit e03f0ed008
3 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@
namespace {
const int ITERS = 100;
boost::mutex io_mutex;
}
} // namespace
template <typename M>
class buffer_t

View File

@@ -51,8 +51,8 @@ public:
{
boost::mutex::scoped_lock lock(iomx);
std::cout << "(" << clock()
<< ") Chef: ouch ... make room ... this dish is very "
<< "hot ..." << std::endl;
<< ") Chef: ouch ... make room ... this dish is "
<< "very hot ..." << std::endl;
}
boost::xtime xt;
boost::xtime_get(&xt, boost::TIME_UTC);
@@ -108,8 +108,8 @@ struct phil
void run() {
{
boost::mutex::scoped_lock lock(iomx);
std::cout << "(" << clock() << ") Phil" << m_id << ": starting ..."
<< std::endl;
std::cout << "(" << clock() << ") Phil" << m_id
<< ": starting ..." << std::endl;
}
for (;;)
{

View File

@@ -33,19 +33,19 @@ public:
};
template<class T>
template <class T>
inline singleton<T>::singleton()
{
/* no-op */
}
template<class T>
template <class T>
inline singleton<T>::~singleton()
{
/* no-op */
}
template<class T>
template <class T>
/*static*/ T &singleton<T>::instance()
{
// function-local static to force this to work correctly at static