Thrift: standardize coding style

Summary: Standardize indentation, spacing, #defines etc.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664784 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/concurrency/PosixThreadFactory.h b/lib/cpp/src/concurrency/PosixThreadFactory.h
index 0095cf8..a56999c 100644
--- a/lib/cpp/src/concurrency/PosixThreadFactory.h
+++ b/lib/cpp/src/concurrency/PosixThreadFactory.h
@@ -1,5 +1,5 @@
-#if !defined(_concurrency_PosixThreadFactory_h_)
-#define _concurrency_PosixThreadFactory_h_ 1
+#ifndef _THRIFT_CONCURRENCY_POSIXTHREADFACTORY_H_
+#define _THRIFT_CONCURRENCY_POSIXTHREADFACTORY_H_ 1
 
 #include "Thread.h"
 
@@ -9,28 +9,33 @@
 
 using namespace boost;
 
-/** A thread factory to create posix threads 
-
-    @author marc
-    @version $Id:$ */
-
+/**
+ * A thread factory to create posix threads 
+ *
+ * @author marc
+ * @version $Id:$
+ */
 class PosixThreadFactory : public ThreadFactory {
 
  public:
 
-  /** POSIX Thread scheduler policies */
-
+  /**
+   * POSIX Thread scheduler policies
+   */
   enum POLICY {
     OTHER,
     FIFO,
     ROUND_ROBIN
   };
 
-  /** POSIX Thread scheduler relative priorities,
-      
-      Absolute priority is determined by scheduler policy and OS.  This enumeration specifies relative priorities such that one can
-      specify a priority withing a giving scheduler policy without knowing the absolute value of the priority. */
-
+  /**
+   * POSIX Thread scheduler relative priorities,
+   *
+   * Absolute priority is determined by scheduler policy and OS. This
+   * enumeration specifies relative priorities such that one can specify a
+   * priority withing a giving scheduler policy without knowing the absolute
+   * value of the priority.
+   */
   enum PRIORITY {
     LOWEST = 0,
     LOWER = 1,
@@ -46,36 +51,37 @@
   PosixThreadFactory(POLICY policy=ROUND_ROBIN, PRIORITY priority=NORMAL, int stackSize=1, bool detached=false);
 
   // From ThreadFactory;
-
   shared_ptr<Thread> newThread(shared_ptr<Runnable> runnable) const;
 
-  /** Sets stack size for created threads
-
-     @param value size in megabytes */
-
+  /**
+   * Sets stack size for created threads
+   *
+   * @param value size in megabytes
+   */
   virtual void stackSize(int value);
 
-  /** Gets stack size for created threads
-
-      @return int size in megabytes */
-
+  /**
+   * Gets stack size for created threads
+   *
+   * @return int size in megabytes
+   */
   virtual int stackSize() const;
 
-  /** Sets priority relative to current policy */
-
+  /**
+   * Sets priority relative to current policy
+   */
   virtual void priority(PRIORITY priority);
 
-  /** Gets priority relative to current policy */
-
+  /**
+   * Gets priority relative to current policy
+   */
   virtual PRIORITY priority() const;
   
  private:
-  
   class Impl;
-
   shared_ptr<Impl> _impl;
 };
 
 }}} // facebook::thrift::concurrency
 
-#endif // !defined(_concurrency_PosixThreadFactory_h_)
+#endif // #ifndef _THRIFT_CONCURRENCY_POSIXTHREADFACTORY_H_