Skip to content

Commit

Permalink
reflect Robs changes. Thx !
Browse files Browse the repository at this point in the history
  • Loading branch information
GBert committed Dec 1, 2015
1 parent d6dfcc1 commit 5d76e9d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 26 deletions.
11 changes: 11 additions & 0 deletions rocrail/patch_save/014-rocs_h_code_fix.patch
@@ -0,0 +1,11 @@
--- a/rocs/public/rocs.h
+++ b/rocs/public/rocs.h
@@ -55,7 +55,7 @@ typedef enum {True=1,False=0,Yes=1,No=0,
#define __ROCS_EVENT__
#define __ROCS_LIB__
#define __ROCS_MUTEX__
-#define __ROCS_SERIAL__
+/* #define __ROCS_SERIAL__ */
#define __ROCS_SOCKET__
#define __ROCS_SYSTEM__
#define __ROCS_THREAD__
File renamed without changes.
File renamed without changes.
26 changes: 0 additions & 26 deletions rocrail/patches/099-musl.patch
Expand Up @@ -29,29 +29,3 @@
#endif
}

--- a/rocs/impl/unx/uthread.c
+++ b/rocs/impl/unx/uthread.c
@@ -114,19 +114,19 @@ void rocs_thread_high( iOThread inst ) {
#if defined __APPLE__
/* TODO: apple thread prio */
#else
- param.__sched_priority = 10; /* valid range = 1...99*/
+ param.sched_priority = 10; /* valid range = 1...99*/

rc = pthread_setschedparam( o->handle, policy, &param );
if( rc == 0 )
- TraceOp.terrno( name, TRCLEVEL_DEBUG, __LINE__, 9999, rc, "Setted thread priority to %d", param.__sched_priority );
+ TraceOp.terrno( name, TRCLEVEL_DEBUG, __LINE__, 9999, rc, "Setted thread priority to %d", param.sched_priority );
else {
- TraceOp.terrno( name, TRCLEVEL_WARNING, __LINE__, 9999, rc, "Could not set thread priority to %d (only superuser can do this)", param.__sched_priority );
+ TraceOp.terrno( name, TRCLEVEL_WARNING, __LINE__, 9999, rc, "Could not set thread priority to %d (only superuser can do this)", param.sched_priority );
}
rc = pthread_getschedparam( o->handle, &policy, &param);
if( policy == SCHED_FIFO ) szPolicy = "SCHED_FIFO";
else if( policy == SCHED_RR ) szPolicy = "SCHED_RR";
else szPolicy = "SCHED_OTHER";
- TraceOp.terrno( name, TRCLEVEL_INFO, __LINE__, 9999, rc, "Current thread priority is %d policy=%s", param.__sched_priority, szPolicy );
+ TraceOp.terrno( name, TRCLEVEL_INFO, __LINE__, 9999, rc, "Current thread priority is %d policy=%s", param.sched_priority, szPolicy );
#endif
}
#endif

0 comments on commit 5d76e9d

Please sign in to comment.