Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 8f47adc3b9085d589e62cb5eb560dd23a703036a Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 8 Sep 2018 12:47:49 -0700 |
| 4 | Subject: [PATCH] include iostream for cout |
| 5 | |
| 6 | End cout with endl |
| 7 | |
| 8 | Fixes |
| 9 | plugins/dynamic_simulator/thread.cpp:241:3: error: 'cout' was not declared in this scope |
| 10 | cout<<"PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is Defined" |
| 11 | ^~~~ |
| 12 | |
| 13 | Upstream-Status: Pending |
| 14 | |
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 16 | --- |
| 17 | plugins/dynamic_simulator/thread.cpp | 4 ++-- |
| 18 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 19 | |
| 20 | diff --git a/plugins/dynamic_simulator/thread.cpp b/plugins/dynamic_simulator/thread.cpp |
| 21 | index b971502..61eaf42 100644 |
| 22 | --- a/plugins/dynamic_simulator/thread.cpp |
| 23 | +++ b/plugins/dynamic_simulator/thread.cpp |
| 24 | @@ -26,7 +26,7 @@ |
| 25 | */ |
| 26 | |
| 27 | #include "thread.h" |
| 28 | -#include <stdio.h> |
| 29 | +#include <iostream> |
| 30 | #include <sys/time.h> |
| 31 | #include <errno.h> |
| 32 | |
| 33 | @@ -238,7 +238,7 @@ cThreadLock::cThreadLock() |
| 34 | pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_RECURSIVE ); |
| 35 | pthread_mutex_init( &m_lock, &attr ); |
| 36 | pthread_mutexattr_destroy( &attr ); |
| 37 | - cout<<"PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is Defined" |
| 38 | + std::cout<<"PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is Defined"<<std::endl; |
| 39 | } |
| 40 | #else |
| 41 | static pthread_mutex_t lock_tmpl = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |