aboutsummaryrefslogtreecommitdiff
path: root/frontend/3ds
diff options
context:
space:
mode:
authoraliaspider2015-09-23 17:13:55 +0100
committeraliaspider2015-09-23 17:13:55 +0100
commit4e45781a20e189ed5efbe471ce6343c571385646 (patch)
tree56a0c5a96ee5b0aed4f5ac6d2f54293a69cd4bd2 /frontend/3ds
parentfc99395c2d7efbbaa0663feed47dc89a54e49506 (diff)
downloadpcsx_rearmed-4e45781a20e189ed5efbe471ce6343c571385646.tar.gz
pcsx_rearmed-4e45781a20e189ed5efbe471ce6343c571385646.tar.bz2
pcsx_rearmed-4e45781a20e189ed5efbe471ce6343c571385646.zip
cleanup.
Diffstat (limited to 'frontend/3ds')
-rw-r--r--frontend/3ds/3ds_utils.h7
-rw-r--r--frontend/3ds/pthread.h12
2 files changed, 0 insertions, 19 deletions
diff --git a/frontend/3ds/3ds_utils.h b/frontend/3ds/3ds_utils.h
index e951dbc..150c56e 100644
--- a/frontend/3ds/3ds_utils.h
+++ b/frontend/3ds/3ds_utils.h
@@ -9,11 +9,4 @@ void ctr_flush_invalidate_cache(void);
int ctr_svchack_init(void);
void ctr_svchack_exit(void);
-#if 0
-#include "stdio.h"
-void wait_for_input(void);
-
-#define DEBUG_HOLD() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);wait_for_input();}while(0)
-#endif
-
#endif // _3DS_UTILS_H
diff --git a/frontend/3ds/pthread.h b/frontend/3ds/pthread.h
index 836f4cb..56d9085 100644
--- a/frontend/3ds/pthread.h
+++ b/frontend/3ds/pthread.h
@@ -17,19 +17,10 @@ typedef struct
}pthread_t;
typedef int pthread_attr_t;
-//#ifndef DEBUG_HOLD
-//#include "stdio.h"
-//void wait_for_input(void);
-
-//#define DEBUG_HOLD() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);wait_for_input();}while(0)
-//#endif
-
static inline int pthread_create(pthread_t *thread,
const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg)
{
-// DEBUG_HOLD();
-
thread->stack = linearMemAlign(CTR_PTHREAD_STACK_SIZE, 8);
svcCreateThread(&thread->handle, (ThreadFunc)start_routine,arg,
@@ -44,7 +35,6 @@ static inline int pthread_join(pthread_t thread, void **retval)
{
(void)retval;
-// DEBUG_HOLD();
if(svcWaitSynchronization(thread.handle, INT64_MAX))
return -1;
@@ -58,11 +48,9 @@ static inline void pthread_exit(void *retval)
{
(void)retval;
-// DEBUG_HOLD();
svcExitThread();
}
-//#undef DEBUG_HOLD
#endif //_3DS_PTHREAD_WRAP__