projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
save tearoff state; restore monitor section state reasonably well; fixup access contr...
[ardour.git]
/
libs
/
pbd
/
crossthread.cc
diff --git
a/libs/pbd/crossthread.cc
b/libs/pbd/crossthread.cc
index 2bcb444b366ef322c1468231d7efa313d478ba0a..7ccf7413806a07408200b068d73be0afbc4ca3c4 100644
(file)
--- a/
libs/pbd/crossthread.cc
+++ b/
libs/pbd/crossthread.cc
@@
-104,3
+104,15
@@
CrossThreadChannel::drain (int fd)
char buf[64];
while (::read (fd, buf, sizeof (buf)) > 0);
}
+
+int
+CrossThreadChannel::deliver (char msg)
+{
+ return ::write (fds[1], &msg, 1);
+}
+
+int
+CrossThreadChannel::receive (char& msg)
+{
+ return ::read (fds[0], &msg, 1);
+}