Yurttas/PL/OOL/Cplusplus/F/02/08/01/00/producer.h

From ZCubes Wiki
Revision as of 21:50, 6 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="cpp" line start="1" enclose="div">/* Copyright(C) 2005 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. Perm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2   Copyright(C) 2005
 3   All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4
 5   Permission to use, copy, modify, and distribute this
 6   software and its documentation for EDUCATIONAL purposes
 7   and without fee is hereby granted provided that this
 8   copyright notice appears in all copies.
 9 
10   date   : September 1, 2005.
11   author : Austin W. Westfall, Salih Yurttas.
12
13   producer.h
14*/
15
16
17#ifndef PRODUCER_H
18#define PRODUCER_H
19
20#include "thread.h"
21#include "cubby_hole.cpp"
22
23#include <iostream>
24
25using namespace std;
26
27class producer : public thread {
28public:
29  producer(cubby_hole<int>*,
30           const int);
31
32  void produce(const int);
33
34private:
35  cubby_hole<int>* ch;
36  int id;
37  int num_items;
38  virtual void run();
39};
40#endif