*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)

*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 15:35:07 -07:00
parent f21f47005d
commit 26b5e033ff
2257 changed files with 750 additions and 103852 deletions
-22
View File
@@ -1,5 +1,4 @@
// -*- C++ -*-
//=============================================================================
/**
* @file System_Time.h
@@ -11,31 +10,23 @@
* @author Douglas C. Schmidt
*/
//=============================================================================
#ifndef ACE_SYSTEM_TIME_H
#define ACE_SYSTEM_TIME_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Global_Macros.h"
#include "ace/os_include/os_time.h" /* For time_t. */
#include "ace/os_include/os_limits.h" /* For MAXPATHLEN. */
#include "ace/MMAP_Memory_Pool.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template<ACE_MEM_POOL_1, class ACE_LOCK> class ACE_Malloc;
template<class MALLOC> class ACE_Allocator_Adapter;
class ACE_Null_Mutex;
class ACE_Time_Value;
class ACE_MMAP_Memory_Pool;
/**
* @class ACE_System_Time
*
@@ -54,47 +45,34 @@ public:
* the system time of the master clock.
*/
enum Sync_Mode { Jump, Adjust };
/// Default constructor.
ACE_System_Time (const ACE_TCHAR *poolname = 0);
/// Default destructor.
~ACE_System_Time (void);
/// Get the local system time, i.e., the value returned by
/// ACE_OS::time().
static int get_local_system_time (time_t & time_out);
/// Get the local system time, i.e., the value returned by
/// ACE_OS::time().
static int get_local_system_time (ACE_Time_Value &time_out);
/// Get the system time of the central time server.
int get_master_system_time (time_t & time_out);
/// Get the system time of the central time server.
int get_master_system_time (ACE_Time_Value &time_out);
/// Synchronize local system time with the central time server using
/// specified mode.
int sync_local_system_time (ACE_System_Time::Sync_Mode mode);
private:
typedef ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> MALLOC;
typedef ACE_Allocator_Adapter<MALLOC> ALLOCATOR;
/// Our allocator (used for obtaining system time from shared memory).
ALLOCATOR * shmem_;
/// The name of the pool used by the allocator.
ACE_TCHAR poolname_[MAXPATHLEN + 1];
/// Pointer to delta time kept in shared memory.
long * delta_time_;
};
ACE_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* ACE_SYSTEM_TIME_H */