From deb1600bbc4d0e04f4560186fb665dc95b908e14 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 27 May 2010 18:46:09 +0000 Subject: SDL Simulator: Get thread shutdown and properly handled and fix a minor memory leak that happens when threads exit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26336 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/thread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/export/thread.h') diff --git a/firmware/export/thread.h b/firmware/export/thread.h index a473e3a..9678c04 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h @@ -122,6 +122,7 @@ struct regs struct regs { void *t; /* Simulator OS thread */ + void *told; /* Last thread in slot (explained in thead-sdl.c) */ void *s; /* Semaphore for blocking and wakeup */ void (*start)(void); /* Start function */ }; -- cgit v1.1