2 * I am too ignorant to know if Cocoa and Libthread
3 * can coexist: if I try to include thread.h, now
4 * that Devdraw uses Cocoa's threads (and timers), it
5 * crashes immediately; when Devdraw was using
6 * proccreate(), it could run a little while before to
7 * crash; the origin of those crashes is hard to
8 * ascertain, because other programs using Libthread
9 * (such as 9term, Acme, Plumber, and Sam) currently
10 * don't run when compiled with Xcode 4.1.
12 //#define TRY_LIBTHREAD
19 #define qunlock dqunlock
20 #define threadexitsall exits
21 #define threadmain main
23 typedef struct QLock QLock;