Macros | Functions | Variables
win32/osal.c File Reference
#include <winsock2.h>
#include <osal.h>
#include "osal_win32.h"
Include dependency graph for win32/osal.c:

Go to the source code of this file.

Macros

#define USECS_PER_SEC   1000000
 

Functions

ec_timet osal_current_time (void)
 
void osal_free (void *ptr)
 
int osal_getrelativetime (struct timeval *tv, struct timezone *tz)
 
int osal_gettimeofday (struct timeval *tv, struct timezone *tz)
 
void * osal_malloc (size_t size)
 
int osal_thread_create (void **thandle, int stacksize, void *func, void *param)
 
int osal_thread_create_rt (void **thandle, int stacksize, void *func, void *param)
 
void osal_time_diff (ec_timet *start, ec_timet *end, ec_timet *diff)
 
boolean osal_timer_is_expired (osal_timert *self)
 
void osal_timer_start (osal_timert *self, uint32 timeout_usec)
 
int osal_usleep (uint32 usec)
 

Variables

static double qpc2usec
 
static int64_t sysfrequency
 

Macro Definition Documentation

◆ USECS_PER_SEC

#define USECS_PER_SEC   1000000

Definition at line 13 of file win32/osal.c.

Function Documentation

◆ osal_current_time()

ec_timet osal_current_time ( void  )

Definition at line 59 of file win32/osal.c.

◆ osal_free()

void osal_free ( void *  ptr)

Definition at line 128 of file win32/osal.c.

◆ osal_getrelativetime()

int osal_getrelativetime ( struct timeval *  tv,
struct timezone *  tz 
)

Definition at line 15 of file win32/osal.c.

◆ osal_gettimeofday()

int osal_gettimeofday ( struct timeval *  tv,
struct timezone *  tz 
)

Definition at line 32 of file win32/osal.c.

◆ osal_malloc()

void* osal_malloc ( size_t  size)

Definition at line 123 of file win32/osal.c.

◆ osal_thread_create()

int osal_thread_create ( void **  thandle,
int  stacksize,
void *  func,
void *  param 
)

Definition at line 133 of file win32/osal.c.

◆ osal_thread_create_rt()

int osal_thread_create_rt ( void **  thandle,
int  stacksize,
void *  func,
void *  param 
)

Definition at line 143 of file win32/osal.c.

◆ osal_time_diff()

void osal_time_diff ( ec_timet start,
ec_timet end,
ec_timet diff 
)

Definition at line 70 of file win32/osal.c.

◆ osal_timer_is_expired()

boolean osal_timer_is_expired ( osal_timert self)

Definition at line 97 of file win32/osal.c.

◆ osal_timer_start()

void osal_timer_start ( osal_timert self,
uint32  timeout_usec 
)

Definition at line 82 of file win32/osal.c.

◆ osal_usleep()

int osal_usleep ( uint32  usec)
inline

Definition at line 111 of file win32/osal.c.

Variable Documentation

◆ qpc2usec

double qpc2usec
static

Definition at line 11 of file win32/osal.c.

◆ sysfrequency

int64_t sysfrequency
static

Definition at line 10 of file win32/osal.c.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49