mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
e185f5af76
- 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).
34 lines
634 B
C++
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 );
|
|
}
|