- dbus-c++ passes now compiling on ubuntu 8.10 machine (-lrt addded for Test1/TestApp)

- identified a potential problem in pipe.cpp and marked it with FIXME
- changed version to 0.9.0-pre1 to inform it's near to 1.0 stable release
This commit is contained in:
Andreas Volz 2011-11-29 23:48:04 +01:00
parent 7a3242b77f
commit 2b8cfc887e
6 changed files with 24 additions and 12 deletions

View file

@ -62,6 +62,7 @@ Pipe::Pipe(void(*handler)(const void *data, void *buffer, unsigned int nbyte), c
void Pipe::write(const void *buffer, unsigned int nbytes)
{
// TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
// first write the size into the pipe...
::write(_fd_write, static_cast <const void *>(&nbytes), sizeof(nbytes));
@ -71,6 +72,7 @@ void Pipe::write(const void *buffer, unsigned int nbytes)
ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
{
// TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
// first read the size from the pipe...
::read(_fd_read, &nbytes, sizeof(nbytes));
@ -80,5 +82,6 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
void Pipe::signal()
{
// TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
::write(_fd_write, '\0', 1);
}