Fix unmatched temporary buffer allocations
[yaffs2.git] / direct / test-framework / stress_tests / threading / lib.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
3  *
4  * Copyright (C) 2002-2018 Aleph One Ltd.
5  *
6  * Created by Timothy Manning <timothy@yaffs.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 2.1 as
10  * published by the Free Software Foundation.
11  *
12  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
13  */
14
15 #ifndef __lib_h__
16 #define __lib_h__
17
18 #define BOVVER_HANDLES 10
19 #include "yaffsfs.h"
20 struct bovver_context {
21         int bovverType;
22         int threadId;
23         char baseDir[200];
24         int h[BOVVER_HANDLES];
25         yaffs_DIR *dirH;
26         int opMax;
27         int op;
28         int cycle;
29 };
30
31 int get_counter(int x);
32 void set_counter(int x, unsigned int value);
33 void init_counter(unsigned int size_of_counter);
34 void number_of_threads(unsigned int num);
35 unsigned int get_num_of_threads(void);
36
37 #endif