projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing includes
[ardour.git]
/
libs
/
pbd
/
crossthread.cc
diff --git
a/libs/pbd/crossthread.cc
b/libs/pbd/crossthread.cc
index 07a732954b0b1f6f6103c1d598a0047fbda533cd..2ffede5163aecc736372818fd82ddb934b2d8d42 100644
(file)
--- a/
libs/pbd/crossthread.cc
+++ b/
libs/pbd/crossthread.cc
@@
-81,7
+81,6
@@
RefPtr<IOSource>
CrossThreadChannel::ios ()
{
if (!_ios) {
CrossThreadChannel::ios ()
{
if (!_ios) {
- std::cerr << "New x-channel fd " << fds[0] << std::endl;
_ios = new RefPtr<IOSource> (IOSource::create (fds[0], IOCondition(IO_IN|IO_PRI|IO_ERR|IO_HUP|IO_NVAL)));
}
return *_ios;
_ios = new RefPtr<IOSource> (IOSource::create (fds[0], IOCondition(IO_IN|IO_PRI|IO_ERR|IO_HUP|IO_NVAL)));
}
return *_ios;
@@
-105,7
+104,7
@@
CrossThreadChannel::drain (int fd)
{
/* drain selectable fd */
char buf[64];
{
/* drain selectable fd */
char buf[64];
- while (::read (fd, buf, sizeof (buf)) > 0);
+ while (::read (fd, buf, sizeof (buf)) > 0)
{}
;
}
int
}
int