appkit  1.5.1
RoadNarrows Robotics Application Kit
Thread.cxx File Reference

Thread base class implementation. More...

#include <sys/time.h>
#include <time.h>
#include <limits.h>
#include <unistd.h>
#include <stdio.h>
#include <pthread.h>
#include <sched.h>
#include <math.h>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/appkit/Time.h"
#include "rnr/appkit/Thread.h"

Go to the source code of this file.

Functions

static void prts (string what, const struct timespec &ts)
 Print out timespec value to stderr. More...
 

Detailed Description

Thread base class implementation.

LastChangedDate
2015-11-09 17:38:34 -0700 (Mon, 09 Nov 2015)
Rev
4195
Copyright
© 2015-2017. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved

Definition in file Thread.cxx.

Function Documentation

static void prts ( string  what,
const struct timespec &  ts 
)
static

Print out timespec value to stderr.

Parameters
whatWhat timespec.
txTimespec.

Definition at line 57 of file Thread.cxx.

58 {
59  fprintf(stderr, "%s = %ld.%09ld\n", what.c_str(), ts.tv_sec, ts.tv_nsec);
60 }