File: main.ih

package info (click to toggle)
c%2B%2B-annotations 10.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,536 kB
  • ctags: 3,247
  • sloc: cpp: 19,157; makefile: 1,521; ansic: 165; sh: 128; perl: 90
file content (19 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include <string>
#include <thread>
#include <queue>

#include "../semaphore/semaphore.h"
#include "../cmdfork/cmdfork.h"

using namespace std;

extern mutex g_coutMutex;
extern mutex g_qsMutex;
extern queue<string> g_qs;

extern Semaphore g_workforce;
extern Semaphore g_worker;

void dispatch(string const &line);
void process(int nr);