diff options
author | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-13 11:09:25 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-13 11:09:25 +0200 |
commit | f0d4a871fa84d094bcb337b16ce7bc4c17bc750a (patch) | |
tree | dcb1904c9eb65aebd9fe8807ec13c62833073ea3 /drivers/gator/daemon/Child.h | |
parent | 5c719ae196db83efbb08d9abcb953a7729745ce2 (diff) | |
parent | 648ec275cc53a16f7ae503314bfd4fd9bd525dd0 (diff) |
Merge remote-tracking branch 'armlt/previous-armlt-gator' into stable-ubuntu-ux500-3.3-1
Conflicts:
drivers/Kconfig
Diffstat (limited to 'drivers/gator/daemon/Child.h')
-rw-r--r-- | drivers/gator/daemon/Child.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/gator/daemon/Child.h b/drivers/gator/daemon/Child.h new file mode 100644 index 00000000000..eee5ac70f9e --- /dev/null +++ b/drivers/gator/daemon/Child.h @@ -0,0 +1,35 @@ +/** + * Copyright (C) ARM Limited 2010-2012. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef __CHILD_H__ +#define __CHILD_H__ + +#include <pthread.h> +#include "Fifo.h" +#include "OlySocket.h" + +class Child { +public: + Child(char* sessionXMLPath); + Child(OlySocket* sock, int numConnections); + ~Child(); + void run(); + OlySocket *socket; + void endSession(); + int numExceptions; +private: + char* xmlString; + char* sessionXMLPath; + int numConnections; + time_t timeStart; + pthread_t durationThreadID, stopThreadID, senderThreadID; + + void initialization(); +}; + +#endif //__CHILD_H__ |