projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Update year to 2011 in copyrights etc.
[yaffs2.git]
/
direct
/
timothy_tests
/
threading
/
lib.c
diff --git
a/direct/timothy_tests/threading/lib.c
b/direct/timothy_tests/threading/lib.c
index 6456958571e52f7991f6ef065ec5e26bf31e6138..c31f62728a43f56b627f71cd68ef2e95575a54c3 100644
(file)
--- a/
direct/timothy_tests/threading/lib.c
+++ b/
direct/timothy_tests/threading/lib.c
@@
-1,7
+1,7
@@
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
- * Copyright (C) 2002-201
0
Aleph One Ltd.
+ * Copyright (C) 2002-201
1
Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Timothy Manning <timothy@yaffs.net>
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Timothy Manning <timothy@yaffs.net>
@@
-12,7
+12,7
@@
*/
#include "lib.h"
*/
#include "lib.h"
-static unsigned int *p_counter;
+static
volatile
unsigned int *p_counter;
static unsigned int numberOfThreads=5;
unsigned int get_num_of_threads(void)
static unsigned int numberOfThreads=5;
unsigned int get_num_of_threads(void)
@@
-37,6
+37,6
@@
void set_counter(int x, unsigned int value)
void init_counter(unsigned int size_of_counter)
{
void init_counter(unsigned int size_of_counter)
{
- p_counter=malloc(size_of_counter*sizeof(int));
+ p_counter=malloc(size_of_counter*sizeof(
unsigned
int));
}
}