devdraw: update Lion cocoa

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5015042
This commit is contained in:
David Jeannot 2011-09-19 08:58:59 -04:00 committed by Russ Cox
parent 53000799be
commit 48107872ba
8 changed files with 627 additions and 430 deletions

View file

@ -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 */