Ignore:
Timestamp:
Jul 10, 2007, 2:00:20 PM (15 years ago)
Author:
titer
Message:

Adds BeOS tr_condBroadcast implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.h

    r2197 r2323  
    2727#ifdef SYS_BEOS
    2828  #include <kernel/OS.h>
     29  #define BEOS_MAX_THREADS 256
    2930  typedef thread_id tr_thread_id_t;
    3031  typedef sem_id    tr_lock_t;
    31   typedef int       tr_cond_t;
     32  typedef struct
     33  {
     34      sem_id sem;
     35      thread_id threads[BEOS_MAX_THREADS];
     36      int start;
     37      int end;
     38  } tr_cond_t;
    3239#else
    3340  #include <pthread.h>
     
    4148    void           * arg;
    4249    char           * name;
    43     tr_thread_id_t thread;;
     50    tr_thread_id_t thread;
    4451}
    4552tr_thread_t;
Note: See TracChangeset for help on using the changeset viewer.