|
59 | 59 | #include "hal/hal_priv.h" |
60 | 60 | #include "uspace_common.h" |
61 | 61 |
|
62 | | -RtapiApp &App(); |
| 62 | +static RtapiApp &App(); |
63 | 63 |
|
64 | 64 | struct message_t { |
65 | 65 | msg_level_t level; |
66 | 66 | char msg[1024 - sizeof(level)]; |
67 | 67 | }; |
68 | 68 |
|
69 | | -boost::lockfree::queue<message_t, boost::lockfree::capacity<128>> rtapi_msg_queue; |
| 69 | +static boost::lockfree::queue<message_t, boost::lockfree::capacity<128>> rtapi_msg_queue; |
70 | 70 |
|
71 | | -pthread_t queue_thread; |
72 | | -void *queue_function(void * /*arg*/) { |
| 71 | +static pthread_t queue_thread; |
| 72 | +static void *queue_function(void * /*arg*/) { |
73 | 73 | set_namef("rtapi_app:mesg"); |
74 | 74 | // note: can't use anything in this function that requires App() to exist |
75 | 75 | // but it's OK to use functions that aren't safe for realtime (that's the |
@@ -163,7 +163,7 @@ static int do_one_item( |
163 | 163 | return 0; |
164 | 164 | } |
165 | 165 |
|
166 | | -void remove_quotes(std::string &s) { |
| 166 | +static void remove_quotes(std::string &s) { |
167 | 167 | s.erase(remove_copy(s.begin(), s.end(), s.begin(), '"'), s.end()); |
168 | 168 | } |
169 | 169 |
|
@@ -618,7 +618,7 @@ static void signal_handler(int sig, siginfo_t * /*si*/, void * /*uctx*/) { |
618 | 618 | exit(1); |
619 | 619 | } |
620 | 620 |
|
621 | | -const size_t PRE_ALLOC_SIZE = 1024 * 1024 * 32; |
| 621 | +const static size_t PRE_ALLOC_SIZE = 1024 * 1024 * 32; |
622 | 622 | const static struct rlimit unlimited = {RLIM_INFINITY, RLIM_INFINITY}; |
623 | 623 | static void configure_memory() { |
624 | 624 | int res = setrlimit(RLIMIT_MEMLOCK, &unlimited); |
@@ -794,9 +794,6 @@ RtapiApp &App() { |
794 | 794 | return *app; |
795 | 795 | } |
796 | 796 |
|
797 | | -/* data for all tasks */ |
798 | | -struct rtapi_task *task_array[MAX_TASKS]; |
799 | | - |
800 | 797 | int rtapi_prio_highest(void) { |
801 | 798 | return App().prio_highest(); |
802 | 799 | } |
|
0 commit comments