|
From: Patrick K. <pk...@su...> - 2007-12-03 12:18:10
|
Hey all,
I have a question on testcase pthread_create/1-1.c :
there is shared variable "int *ctrl = (int *) arg;" in function
"hp_func" which should be protected through pthread_mutex or similar, right?
As I understand this shared variable should always be protected?
So is there a reason why there are no pthread synchronisation calls?
As you can see in the suggested temporary patch below, is it possible to
add volatile-statement to the shared variables?
I'm asking, because sometimes this testcase fails on s390x.
---
testcases/open_posix_testsuite/conformance/interfaces/pthread_create/1-6.c
+++
testcases/open_posix_testsuite/conformance/interfaces/pthread_create/1-6.c
@@ -111,7 +111,7 @@
void * hp_func(void * arg)
{
- int *ctrl = (int *) arg;
+ volatile int *ctrl = (int *) arg;
int dummy=0, i;
do
{
Thanks for advice,
--
Patrick Kirsch - Quality Assurance Department
SUSE Linux Products GmbH GF: Markus Rex, HRB 16746 (AG Nuernberg)
|