mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-30 00:40:20 +02:00
* coop-defs.h (struct coop_t): Removed dummy_mutex.
* coop-defs.h, coop-threads.c (struct coop_t): Eliminate `sto'-field when GUILE_PTHREAD_COMPAT is enabled.
This commit is contained in:
parent
21aab5c929
commit
2f511ab1aa
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,9 @@ struct qt_t;
|
||||||
|
|
||||||
typedef struct coop_t {
|
typedef struct coop_t {
|
||||||
struct qt_t *sp; /* QuickThreads handle. */
|
struct qt_t *sp; /* QuickThreads handle. */
|
||||||
|
#ifndef GUILE_PTHREAD_COMPAT
|
||||||
void *sto; /* `malloc'-allocated stack. */
|
void *sto; /* `malloc'-allocated stack. */
|
||||||
|
#endif
|
||||||
|
|
||||||
struct coop_t *next; /* Next thread in the queue. */
|
struct coop_t *next; /* Next thread in the queue. */
|
||||||
|
|
||||||
|
@ -118,7 +120,6 @@ typedef struct coop_t {
|
||||||
#ifdef GUILE_PTHREAD_COMPAT
|
#ifdef GUILE_PTHREAD_COMPAT
|
||||||
pthread_t dummy_thread;
|
pthread_t dummy_thread;
|
||||||
pthread_mutex_t dummy_mutex;
|
pthread_mutex_t dummy_mutex;
|
||||||
pthread_cond_t dummy_cond;
|
|
||||||
#endif
|
#endif
|
||||||
} coop_t;
|
} coop_t;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue