Ignore:
Timestamp:
Oct 27, 2014, 4:46:05 PM (10 years ago)
Author:
djay
Message:

Use unique identifier as reference for asynchronous service execution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service.h

    r508 r514  
    4141#define zWrite _write
    4242#define zSleep Sleep
     43#include <sys/timeb.h>
     44struct ztimeval {
     45  long tv_sec; /* seconds */
     46  long tv_usec; /* and microseconds */
     47};
     48void zGettimeofday(struct mstimeval* tp, void* tzp)
     49{
     50  struct _timeb theTime;
     51  _ftime(&theTime);
     52  tp->tv_sec = theTime.time;
     53  tp->tv_usec = theTime.millitm * 1000;
     54}
    4355#else
    4456#define zStrdup strdup
     
    4759#define zWrite write
    4860#define zSleep sleep
     61#define zGettimeofday gettimeofday
     62#define ztimeval timeval
    4963#endif
    5064
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png