6 #include <boost/thread.hpp> 7 #include <boost/detail/atomic_count.hpp> 11 using boost::detail::atomic_count;
26 boost::mutex::scoped_lock lock(
g_mutex);
35 int main(
int argc,
char** argv)
46 queue->addCallback(cb, 0);
50 boost::mutex::scoped_lock lock(
g_mutex);
55 printf(
"Total time = %.3f\n", end - start);
ros::CallbackInterface::CallResult call()
void notify_all() BOOST_NOEXCEPT
boost::shared_ptr< MyCallback > MyCallbackPtr
void wait(unique_lock< mutex > &m)
boost::condition_variable g_cond
atomic_count g_count(NUM_CALLBACKS)
void addQueue(const CallbackQueuePtr &queue, bool threaded)
static const long NUM_CALLBACKS
int main(int argc, char **argv)