1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/cad/tochnog/files/patch-sysposix.cc
Tijl Coosemans e185f5af76 - Use options framework.
- USES=fortran.
- Eliminate FORTRANLIBS and GCCLIBDIR.
- Staging.
- Install examples depending on the EXAMPLES option instead of DOCS.
- Fix build with THREADS option (superlu_mt changes and C++11 mutex
  conflict).
2013-12-21 13:40:18 +00:00

34 lines
634 B
C++

--- sysposix.cc.orig
+++ sysposix.cc
@@ -20,20 +20,20 @@
#include "tochnog.h"
#include "pthread.h"
-pthread_mutex_t mutex;
+pthread_mutex_t mtx;
long int inext=0;
pthread_t threads[MTHREAD];
void parallel_sys_initialize( void )
{
- pthread_mutex_init( &mutex, NULL );
+ pthread_mutex_init( &mtx, NULL );
}
void parallel_sys_lock( void )
{
- pthread_mutex_lock( &mutex );
+ pthread_mutex_lock( &mtx );
}
void parallel_sys_next_of_loop( long int next_of_loop[], long int max_loop,
@@ -96,5 +96,5 @@
void parallel_sys_unlock( void )
{
- pthread_mutex_unlock( &mutex );
+ pthread_mutex_unlock( &mtx );
}