diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-19 02:49:01 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-19 02:49:01 +0000 |
commit | f0748535a5023d132eff03999a705a3e56c516db (patch) | |
tree | 34924d873426319d77cb52ac3239acb7aec916a1 /libs/pbd/crossthread.cc | |
parent | 295eb9a395d2ad36654a1d71019a571400adaee8 (diff) |
save tearoff state; restore monitor section state reasonably well; fixup access control to parts of editor.h (needs more work); extend CrossThread just a little
git-svn-id: svn://localhost/ardour2/branches/3.0@6774 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/crossthread.cc')
-rw-r--r-- | libs/pbd/crossthread.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/pbd/crossthread.cc b/libs/pbd/crossthread.cc index 2bcb444b36..7ccf741380 100644 --- 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); +} |