diff options
Diffstat (limited to 'dds_io_pub/Writer.cpp')
| -rw-r--r-- | dds_io_pub/Writer.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dds_io_pub/Writer.cpp b/dds_io_pub/Writer.cpp index f0b16f0..edd61ce 100644 --- a/dds_io_pub/Writer.cpp +++ b/dds_io_pub/Writer.cpp @@ -77,7 +77,7 @@ Writer::svc () struct timespec t_sleep; t_sleep.tv_sec = 0; - t_sleep.tv_nsec = 10000; + t_sleep.tv_nsec = 5000; IOTest::Port port_obj; ::DDS::InstanceHandle_t handle = port_dw->_cxx_register (port_obj); @@ -97,6 +97,8 @@ Writer::svc () lastval = actval; port_obj.value = actval; + + //std::cout<<"new: "<<lastval<<std::endl; ::DDS::ReturnCode_t ret = port_dw->write(port_obj, handle); @@ -108,11 +110,11 @@ Writer::svc () if (ret == ::DDS::RETCODE_TIMEOUT) timeout_writes_ ++; - } + } - nanosleep(&t_sleep, NULL); + nanosleep(&t_sleep, NULL); - //cout<<".\n"; + //cout<<".\n"; } } catch (CORBA::Exception& e) { |
