LO41/ElevatorBreaker/ElevatorBreaker.h

26 lines
492 B
C
Raw Permalink Normal View History

2018-06-22 01:59:36 +00:00
//
// Created by Antoine Bartuccio on 22/06/2018.
//
#ifndef LO41_ELEVATORBREAKER_H
#define LO41_ELEVATORBREAKER_H
2018-06-22 05:46:29 +00:00
#define MAX_BREAKS 30
2018-06-22 01:59:36 +00:00
#include "../Objects.h"
typedef struct o_ElevatorBreaker {
PRIVATE int thread_number;
2018-06-22 05:46:29 +00:00
PRIVATE int breaks;
2018-06-22 01:59:36 +00:00
PUBLIC void * (*runnable)(void * void_this);
PUBLIC void (*set_thread_number)(_THIS(ElevatorBreaker), int data);
DESTRUCTOR(ElevatorBreaker);
} ElevatorBreaker;
ElevatorBreaker *_init_ElevatorBreaker();
#endif //LO41_ELEVATORBREAKER_H