code style
This commit is contained in:
@@ -27,15 +27,12 @@
|
||||
/**
|
||||
* class to notify other thread per pipe.
|
||||
*/
|
||||
class Notify
|
||||
{
|
||||
|
||||
public:
|
||||
class Notify {
|
||||
public:
|
||||
/**
|
||||
* constructs a new instance and do notifying.
|
||||
*/
|
||||
Notify()
|
||||
{
|
||||
Notify() {
|
||||
int pipefd[2];
|
||||
int ret = pipe(pipefd);
|
||||
|
||||
@@ -62,15 +59,14 @@ public:
|
||||
* write notify event to file descriptor.
|
||||
* @return result of writing notification.
|
||||
*/
|
||||
int notify() const { return write(m_sendfd,"1",1); }
|
||||
int notify() const { return write(m_sendfd, "1", 1); }
|
||||
|
||||
private:
|
||||
private:
|
||||
/** file descriptor to watch */
|
||||
int m_recvfd;
|
||||
|
||||
/** file descriptor to notify */
|
||||
int m_sendfd;
|
||||
|
||||
};
|
||||
|
||||
#endif // LIB_UTILS_NOTIFY_H_
|
||||
|
||||
Reference in New Issue
Block a user