ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MPCode.h
Go to the documentation of this file.
1 /* @(#)root/multiproc:$Id$ */
2 // Author: Enrico Guiraud July 2015
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_MPCode
13 #define ROOT_MPCode
14 
15 /////////////////////////////////////////////////////////////////////////
16 /// This namespace prevents conflicts between MPCode::kError and
17 /// ELogLevel::kError
18 namespace MPCode {
19 
20  /////////////////////////////////////////////////////////////////////////
21  ///
22  /// An enumeration of the message codes handled by TMPClient and
23  /// TMPWorker.
24  ///
25  /////////////////////////////////////////////////////////////////////////
26 
27  enum EMPCode : unsigned {
28  //not an enum class because we want to be able to easily cast back and forth from unsigned
29  kMessage = 1000, ///< Generic message
30  kError, ///< Error message
31  kFatalError, ///< Fatal error: whoever sends this message is terminating execution
32  kShutdownOrder, ///< Used by the client to tell servers to shutdown
33  kShutdownNotice, ///< Used by the workers to notify client of shutdown
34  kRecvError ///< Error while reading from the socket
35  };
36 }
37 
38 #endif
Error message.
Definition: MPCode.h:30
Error while reading from the socket.
Definition: MPCode.h:34
Used by the workers to notify client of shutdown.
Definition: MPCode.h:33
Fatal error: whoever sends this message is terminating execution.
Definition: MPCode.h:31
Used by the client to tell servers to shutdown.
Definition: MPCode.h:32
EMPCode
An enumeration of the message codes handled by TMPClient and TMPWorker.
Definition: MPCode.h:27
Generic message.
Definition: MPCode.h:29