* fix up configure help messages for timers
* make Solaris timer code compile * fix compile error in solaris threads code This commit was SVN r6954.
Этот коммит содержится в:
@ -17,26 +17,26 @@
|
||||
#ifndef OPAL_MCA_TIMER_SOLARIS_TIMER_SOLARIS_H
|
||||
#define OPAL_MCA_TIMER_SOLARIS_TIMER_SOLARIS_H
|
||||
|
||||
#include <mach/mach_time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
typedef hrtime_t opal_timer_t;
|
||||
|
||||
|
||||
static inline opal_timer_t
|
||||
opal_timer_base_get_cycles()
|
||||
opal_timer_base_get_cycles(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline opal_timer_t
|
||||
opal_timer_base_get_usec()
|
||||
opal_timer_base_get_usec(void)
|
||||
{
|
||||
/* gethrtime returns nanoseconds */
|
||||
return gethrtime() / 1000;
|
||||
}
|
||||
|
||||
static inline opal_timer_t
|
||||
opal_timer_base_get_freq()
|
||||
opal_timer_base_get_freq(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Ссылка в новой задаче
Block a user