devdraw: update Lion cocoa
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5015042
This commit is contained in:
parent
53000799be
commit
48107872ba
8 changed files with 627 additions and 430 deletions
|
|
@ -1,12 +1,8 @@
|
|||
#define QLock DQLock
|
||||
#define qlock dqlock
|
||||
#define qunlock dqunlock
|
||||
#define Rendez DRendez
|
||||
#define rsleep drsleep
|
||||
#define rwakeup drwakeup
|
||||
|
||||
typedef struct QLock QLock;
|
||||
typedef struct Rendez Rendez;
|
||||
|
||||
struct QLock
|
||||
{
|
||||
|
|
@ -14,14 +10,5 @@ struct QLock
|
|||
int init;
|
||||
};
|
||||
|
||||
struct Rendez
|
||||
{
|
||||
QLock *l;
|
||||
pthread_cond_t c;
|
||||
int init;
|
||||
};
|
||||
|
||||
void qlock(QLock*);
|
||||
void qunlock(QLock*);
|
||||
void rsleep(Rendez*);
|
||||
int rwakeup(Rendez*); /* BUG: always returns 0 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue