From e29fc9d0f23c62085114cb479032e07b0fb29abb Mon Sep 17 00:00:00 2001 From: Amavect Date: Thu, 7 Sep 2023 02:38:36 +0000 Subject: inline spawned threads to threadmain. Pointers to automatic variables become invalid when threadmain exits. Solution is to reuse threadmain. Use nbsend to avoid deadlock to the draw channel. Input struct is no longer needed, inline it. --- dat.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'dat.h') diff --git a/dat.h b/dat.h index a4a5df3..a85a177 100644 --- a/dat.h +++ b/dat.h @@ -31,7 +31,6 @@ enum { KB = 1024, }; -typedef struct Input Input; typedef struct Ship Ship; typedef struct Map Map; typedef struct Board Board; @@ -40,12 +39,6 @@ typedef struct Playerq Playerq; typedef struct Match Match; typedef struct Chanpipe Chanpipe; -struct Input -{ - Mousectl *mc; - Keyboardctl *kc; -}; - struct Ship { Point2 p; /* board cell */ -- cgit v1.2.3