One more comment: it would be good if infinite time-outs are supported -
i.e. by passing -1 as timeout argument.
regards,
Anders Widell
On 10/22/2016 02:53 PM, Hans Nordeback wrote:
> osaf/libs/core/cplusplus/base/Makefile.am|2 +
> osaf/libs/core/cplusplus/base/file_notify.cc |
Ack with minor comment marked [AndersW].
regards,
Anders Widell
On 10/22/2016 02:53 PM, Hans Nordeback wrote:
> osaf/libs/core/cplusplus/base/Makefile.am|2 +
> osaf/libs/core/cplusplus/base/file_notify.cc | 188
> +++
>
Hi,
the design can be more general, WaitForFileCreation/Deletion can be change to
WaitForEvent(Events, timeout),
where Events contains filename + filedescriptors. When an event happens it will
be returned.
/Thanks HansN
-Original Message-
From: Hans Nordeback
osaf/libs/core/cplusplus/base/Makefile.am|2 +
osaf/libs/core/cplusplus/base/file_notify.cc | 188 +++
osaf/libs/core/cplusplus/base/file_notify.h | 103 ++
3 files changed, 293 insertions(+), 0 deletions(-)
diff --git