Reverted changes to epicsTime.h and epicsThread.h

This commit is contained in:
Andrew Johnson
2014-08-18 22:55:07 -05:00
parent b7f8f17227
commit 9079c8aa53
2 changed files with 7 additions and 20 deletions

View File

@@ -10,12 +10,7 @@
#ifndef epicsThreadh
#define epicsThreadh
#ifdef __cplusplus
#include <cstddef>
using std :: size_t;
#else
#include <stddef.h>
#endif
#include "shareLib.h"
@@ -43,9 +38,7 @@ typedef void (*EPICSTHREADFUNC)(void *parm);
/* stack sizes for each stackSizeClass are implementation and CPU dependent */
typedef enum {
epicsThreadStackSmall,
epicsThreadStackMedium,
epicsThreadStackBig
epicsThreadStackSmall, epicsThreadStackMedium, epicsThreadStackBig
} epicsThreadStackSizeClass;
typedef enum {

View File

@@ -12,11 +12,7 @@
#ifndef epicsTimehInclude
#define epicsTimehInclude
#ifdef __cplusplus
# include <ctime>
#else
# include <time.h>
#endif
#include <time.h>
#include "shareLib.h"
#include "epicsTypes.h"
@@ -46,7 +42,7 @@ struct l_fp; /* NTP timestamp */
* and a struct tm that is adjusted for the local timezone
*/
struct local_tm_nano_sec {
std :: tm ansi_tm; /* ANSI C time details */
struct tm ansi_tm; /* ANSI C time details */
unsigned long nSec; /* nano seconds extension */
};
@@ -55,7 +51,7 @@ struct local_tm_nano_sec {
* and a struct tm that is adjusted for GMT (UTC)
*/
struct gm_tm_nano_sec {
std :: tm ansi_tm; /* ANSI C time details */
struct tm ansi_tm; /* ANSI C time details */
unsigned long nSec; /* nano seconds extension */
};
@@ -65,7 +61,7 @@ struct gm_tm_nano_sec {
* conversions to occur
*/
struct time_t_wrapper {
std :: time_t ts;
time_t ts;
};
class epicsShareClass epicsTimeEvent
@@ -248,10 +244,8 @@ epicsShareFunc void epicsShareAPI epicsTimeShow (
/* OS dependent reentrant versions of the ANSI C interface because */
/* vxWorks gmtime_r interface does not match POSIX standards */
epicsShareFunc int epicsShareAPI
epicsTime_localtime ( const time_t * clock, struct tm * result );
epicsShareFunc int epicsShareAPI
epicsTime_gmtime ( const time_t * clock, struct tm * result );
epicsShareFunc int epicsShareAPI epicsTime_localtime ( const time_t * clock, struct tm * result );
epicsShareFunc int epicsShareAPI epicsTime_gmtime ( const time_t * clock, struct tm * result );
#ifdef __cplusplus
}