|
From: <sv...@va...> - 2005-05-17 21:10:14
|
Author: njn
Date: 2005-05-17 22:10:11 +0100 (Tue, 17 May 2005)
New Revision: 3764
Modified:
trunk/coregrind/core.h
Log:
minor cleanups
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-05-17 21:07:46 UTC (rev 3763)
+++ trunk/coregrind/core.h 2005-05-17 21:10:11 UTC (rev 3764)
@@ -35,9 +35,6 @@
#include "tool.h" // tool stuff
#include "core_arch.h" // arch-specific stuff, eg. x86/core_arch.h
=20
-// Ugly: this is needed by linux/core_os.h
-typedef struct _ThreadState ThreadState;
-
#include "core_platform.h" // platform-specific stuff,
// eg. x86-linux/core_platform.h
#include "core_os.h" // OS-specific stuff, eg. linux/core_os.h
@@ -204,7 +201,7 @@
ThreadArchState;
=20
=20
-struct _ThreadState {
+typedef struct {
/* ThreadId =3D=3D 0 (and hence vg_threads[0]) is NEVER USED.
The thread identity is simply the index in vg_threads[].
ThreadId =3D=3D 1 is the root thread and has the special property
@@ -288,8 +285,10 @@
/* Per-thread jmp_buf to resume scheduler after a signal */
Bool sched_jmpbuf_valid;
jmp_buf sched_jmpbuf;
-};
+}
+ThreadState;
=20
+
/* The thread table. */
extern ThreadState VG_(threads)[VG_N_THREADS];
=20
@@ -324,7 +323,8 @@
extern Int VG_(count_living_threads)(void);
=20
/* Nuke all threads except tid. */
-extern void VG_(nuke_all_threads_except) ( ThreadId me, VgSchedReturnCod=
e reason );
+extern void VG_(nuke_all_threads_except) ( ThreadId me,
+ VgSchedReturnCode reason );
=20
/* Make a thread the running thread. The thread must previously been
sleeping, and not holding the CPU semaphore. This will set the
@@ -589,9 +589,6 @@
/* Something of a function looking for a home ... start up debugger. */
extern void VG_(start_debugger) ( ThreadId tid );
=20
-/* Counts downwards in vg_run_innerloop. */
-extern UInt VG_(dispatch_ctr);
-
/* Stats ... */
extern void VG_(print_scheduler_stats) ( void );
=20
|