Skip to content
Permalink
d709efa10f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (18 sloc) 452 Bytes
#include <stdio.h>
#include "io/out_procs/VirtualOutputProcessor.hpp"
#define THREADS 5
int main() {
printf("Hello World!\n");
SensorThread* procs[THREADS];
int targs[THREADS];
for (int i = 0; i < THREADS; i++) {
procs[i] = new VirtualOutputProcessor;
targs[i] = i + 1;
procs[i]->startThread(targs + i);
}
for (int i = 0; i < THREADS; i++) {
procs[i]->waitForThread();
delete procs[i];
}
return 0;
}