Changeset 7546


Ignore:
Timestamp:
Oct 29, 2007, 6:48:45 AM (12 years ago)
Author:
gb
Message:

Some things are different when USE_FUTEX is defined.

Declare a variable used to control the generation logging output for
TCR creation/access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0710/ccl/lisp-kernel/Threads.h

    r7418 r7546  
    4747#include "gc.h"
    4848
     49#ifdef USE_FUTEX
     50#include <linux/futex.h>
     51#include <sys/syscall.h>
     52#endif
     53
     54#include <syslog.h>
     55
    4956Boolean extern threads_initialized;
     57Boolean extern log_tcr_info;
    5058
    5159#define LOCK_SPINLOCK(x,tcr) get_spin_lock(&(x),tcr)
     
    133141  natural blocked_readers;
    134142  TCR  *writer;
     143#ifdef USE_FUTEX
     144  natural reader_signal;
     145  natural writer_signal;
     146#else
    135147  void * reader_signal;
    136148  void * writer_signal;
     149#endif
    137150  void *malloced_ptr;
    138151} rwlock;
Note: See TracChangeset for help on using the changeset viewer.