diff options
| author | guest <guest@c30cbac5-9f56-4f76-8ed5-5c34e48a65ae> | 2007-10-23 15:03:30 +0000 |
|---|---|---|
| committer | guest <guest@c30cbac5-9f56-4f76-8ed5-5c34e48a65ae> | 2007-10-23 15:03:30 +0000 |
| commit | b93bf7c8cffecadb39b2b2d76b3722f67a5f63de (patch) | |
| tree | 089d397b99bd8474ddb75c559e54e096d1a0a893 /dds_io_pub/Writer.cpp | |
| parent | 82cd9d0b1c3140af30518fcc28af539fac5906ae (diff) | |
git-svn-id: svn+ssh://mecka.net/home/svn/dds@17 c30cbac5-9f56-4f76-8ed5-5c34e48a65ae
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) { |
