Subject: [Boost-bugs] [Boost C++ Libraries] #10496: 100% cpu usage when reading serial port on MacOSX
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-11 21:32:48
#10496: 100% cpu usage when reading serial port on MacOSX
-------------------------------------------+----------------------------
Reporter: Christopher Moore <crmoore@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.56.0 | Severity: Problem
Keywords: |
-------------------------------------------+----------------------------
Simple test program is attached. All it does is setup a serial port and
start waiting for data. It prints the first data it receives, and quits.
It is using 100% cpu (according to activity monitor).
I've tried with the following serial ports: silab usb adapter, prolific
usb adapter, and pty with master attached to socat.
The profiler puts most of the time in ```kevent``` called from
```boost::asio::detail::kqueue_reactor::run(bool,
boost::asio::detail::op_queue<boost::asio::detail::task_io_service_operation>&)```
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10496> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC