summaryrefslogtreecommitdiff
path: root/src/common/console.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-03-13 15:48:14 +0100
committerHaru <haru@dotalux.com>2016-07-12 20:58:42 +0200
commitb9578c1d8ce54b48363e297b1c56cdea0ed72821 (patch)
tree4539010ef6af70a55b2b1515a464ebe3cfe60fcd /src/common/console.h
parent8c66f639fdd495f3d28aac905acda823fc6a0ae6 (diff)
downloadhercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.tar.gz
hercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.tar.bz2
hercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.tar.xz
hercules-b9578c1d8ce54b48363e297b1c56cdea0ed72821.zip
Removed unnecessary typedefs from thread and spinlock
- SPIN_LOCK -> struct spin_lock - rAthread -> struct thread_handle - rAthreadProc -> threadFunc - RATHREAD_PRIO -> enum thread_priority - RAT_PRIO_LOW -> THREADPRIO_LOW - RAT_PRIO_NORMAL -> THREADPRIO_NORMAL - RAT_PRIO_HIGH -> THREADPRIO_HIGH - RA_THREADS_MAX -> THREADS_MAX Signed-off-by: Haru <haru@dotalux.com> fixupthread
Diffstat (limited to 'src/common/console.h')
-rw-r--r--src/common/console.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/common/console.h b/src/common/console.h
index f97e36456..dd3a9cf2e 100644
--- a/src/common/console.h
+++ b/src/common/console.h
@@ -23,12 +23,13 @@
#include "common/hercules.h"
#include "common/db.h"
#include "common/spinlock.h"
-#include "common/thread.h"
/* Forward Declarations */
struct Sql; // common/sql.h
-struct mutex_data;
struct cond_data;
+struct mutex_data;
+struct spin_lock;
+struct thread_handle;
/**
* Queue Max
@@ -72,11 +73,11 @@ struct CParseEntry {
struct console_input_interface {
#ifdef CONSOLE_INPUT
/* vars */
- SPIN_LOCK ptlock;/* parse thread lock */
- rAthread *pthread;/* parse thread */
- volatile int32 ptstate;/* parse thread state */
- struct mutex_data *ptmutex; ///< parse thread mutex.
- struct cond_data *ptcond; ///< parse thread conditional variable.
+ struct spin_lock *ptlock; ///< parse thread lock.
+ struct thread_handle *pthread; ///< parse thread.
+ volatile int32 ptstate; ///< parse thread state.
+ struct mutex_data *ptmutex; ///< parse thread mutex.
+ struct cond_data *ptcond; ///< parse thread conditional variable.
/* */
VECTOR_DECL(struct CParseEntry *) command_list;
VECTOR_DECL(struct CParseEntry *) commands;