SimpleStats - void SS_eatingStart(SimpleStats *s, int id);...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _SimpleStats_h_ #define _SimpleStats_h_ #include "sthread.h" typedef struct SimpleStatsS{ smutex_t mutex; int n; int verbose; int *eatCount; int *eatingNow; int curSimul; int maxSimul; int totalFill; int totalEat; time_t lastCheck; int lastCheckEatTotal; int infiniteBowl; int fillingBowl; int cleaningSticks; int cleaningPlates; int cleaningBowl; int cleaningCount; } SimpleStats; void SS_init(SimpleStats *s, int n, int verbose, int infiniteBowl);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: void SS_eatingStart(SimpleStats *s, int id); void SS_eatingDone(SimpleStats *s, int id); void SS_fillingStart(SimpleStats *s); void SS_fillingDone(SimpleStats *s, int amount); void SS_cleaningStart(SimpleStats *s); void SS_cleaningDoneBowl(SimpleStats *s); void SS_cleaningDone(SimpleStats *s); void SS_progress(SimpleStats *s); void SS_printStats(SimpleStats *s); #endif...
View Full Document

This document was uploaded on 04/05/2010.

Ask a homework question - tutors are online