diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-18 04:27:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-18 04:27:39 +0200 |
commit | adc148d8a2fb538a3466d8483cc2315c1ab10955 (patch) | |
tree | 1fecaddd946bea84a9cf4cf859c7dd434f00650e /src/mds-server/mds-server.h | |
parent | zealous use of * sizeof(char) when using mem* functions (diff) | |
download | mds-adc148d8a2fb538a3466d8483cc2315c1ab10955.tar.gz mds-adc148d8a2fb538a3466d8483cc2315c1ab10955.tar.bz2 mds-adc148d8a2fb538a3466d8483cc2315c1ab10955.tar.xz |
reduce code complexity
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-server/mds-server.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mds-server/mds-server.h b/src/mds-server/mds-server.h index 43662d7..08f7fd4 100644 --- a/src/mds-server/mds-server.h +++ b/src/mds-server/mds-server.h @@ -116,6 +116,15 @@ int marshal_server(int fd); */ int unmarshal_server(int fd); +/** + * Create, start and detache a slave thread + * + * @param thread The address at where to store the thread + * @param socket_fd The file descriptor of the slave's socket + * @return Zero on success, -1 on error, error message will have been printed + */ +int create_slave(pthread_t* thread_slot, int socket_fd); + #endif |