mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
remove a dead var from flow.c and make the mutex use defaults (not sure if
the thing even works:( )
This commit is contained in:
parent
35a14572be
commit
c1c36f79f5
2 changed files with 4 additions and 5 deletions
|
@ -63,7 +63,6 @@ int c_chains;
|
|||
int c_portalskip, c_leafskip;
|
||||
int c_vistest, c_mighttest;
|
||||
int c_leafsee, c_portalsee;
|
||||
int active;
|
||||
|
||||
byte portalsee[MAX_PORTALS];
|
||||
|
||||
|
|
|
@ -473,16 +473,16 @@ CalcPortalVis (void)
|
|||
pthread_t work_threads[MAX_THREADS];
|
||||
void *status;
|
||||
pthread_attr_t attrib;
|
||||
pthread_mutexattr_t mattrib;
|
||||
// pthread_mutexattr_t mattrib;
|
||||
|
||||
|
||||
my_mutex = malloc (sizeof (*my_mutex));
|
||||
if (pthread_mutexattr_init (&mattrib) == -1)
|
||||
fprintf (stderr, "pthread_mutex_attr_create failed\n");
|
||||
// if (pthread_mutexattr_init (&mattrib) == -1)
|
||||
// fprintf (stderr, "pthread_mutex_attr_create failed\n");
|
||||
// if (pthread_mutexattr_settype (&mattrib, PTHREAD_MUTEX_ADAPTIVE_NP)
|
||||
// == -1)
|
||||
// fprintf (stderr, "pthread_mutexattr_setkind_np failed\n");
|
||||
if (pthread_mutex_init (my_mutex, &mattrib) == -1)
|
||||
if (pthread_mutex_init (my_mutex, 0) == -1)
|
||||
fprintf (stderr, "pthread_mutex_init failed\n");
|
||||
if (pthread_attr_init (&attrib) == -1)
|
||||
fprintf (stderr, "pthread_attr_create failed\n");
|
||||
|
|
Loading…
Reference in a new issue