1
1

* fix up configure help messages for timers

* make Solaris timer code compile
* fix compile error in solaris threads code

This commit was SVN r6954.
Этот коммит содержится в:
Brian Barrett
2005-08-21 21:02:28 +00:00
родитель 89125a95ca
Коммит e45fc567b3
6 изменённых файлов: 9 добавлений и 10 удалений

Просмотреть файл

@ -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;
}