Testing Pthreads with Visual Studio .Net
Pietrobon Marcello
teiffel@attglobal.net
Tue Feb 19 21:53:00 GMT 2002
This is just for information.
If I test pthreads-2001-07-12 things are a little bit different.
Once I fix barriers.c and spin.c with:
#if defined (__MINGW32__) || (_MSC_VER >= 1300)
# define _LONG long
# define _LPLONG long*
#else
# define _LONG PVOID
# define _LPLONG PVOID*
#endif
these are the tests errors I get:
spin2.c :
assert(pthread_spin_trylock(&lock) == EBUSY); failed because
pthread_spin_trylock(&lock) = 22
spin3.c :
assert(pthread_spin_unlock(&spin) == EPERM); failed because
pthread_spin_unlock(&spin) = 22
spin4.exe :
The exception Privileged instruction. - (0xc0000096) occurred in the
application at location 0x77e8699b.
exception3.c :
assert(caught == NUMTHREADS); failed because caught = 0
Regards,
Marcello
More information about the Pthreads-win32
mailing list