os_linux.c File Reference

Linux specific functions. More...

#include <sys/time.h>
#include <sys/types.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
#include <asm/param.h>
#include "os.h"

Functions

char * os_thread2a (thread_t tid)
 Return a thread-id in human-readable form.
char * os_prio2a (int prio)
 Return a prio in human-readable form.
int os_thread_create (void(*entry)(void *), void *arg)
 Generate a new thread.
void os_usleep (unsigned long usec)
 sleep for a couple of microseconds
void os_msleep (unsigned long msec)
 sleep for a couple of milliseconds
int os_zap_thread (thread_t tid)
 Zap a thread.
cputime_t os_get_time_stamp (void)
 Return time in Linux time format.


Detailed Description

Linux specific functions.

Date:
01/19/2004
Author:
Jork Loeser <jork.loeser@inf.tu-dresden.de>

Function Documentation

cputime_t os_get_time_stamp ( void   ) 

Return time in Linux time format.

return time in os-specific time format

Referenced by scope_update().

char* os_prio2a ( int  prio  ) 

Return a prio in human-readable form.

Return priority in human-readable form.

Parallel invocations result in garbaged text.

char* os_thread2a ( thread_t  tid  ) 

Return a thread-id in human-readable form.

Parallel invocations result in garbaged text.

int os_zap_thread ( thread_t  tid  ) 

Zap a thread.

Todo:
Implement this.


Generated on Wed Apr 11 06:39:34 2012 for JTop - Top for DROPS by  doxygen 1.5.6