os_labs/lab11/vector-header.h

14 lines
210 B
C
Raw Normal View History

2020-06-11 15:16:58 +10:00
#ifndef __vector_header_h__
#define __vector_header_h__
#define VECTOR_SIZE (100)
typedef struct __vector {
pthread_mutex_t lock;
int values[VECTOR_SIZE];
} vector_t;
#endif // __vector_header_h__