termios: Make rtems_termios_ttyMutex private

This mutex is used to maintain termios internal data structures.
This commit is contained in:
Sebastian Huber
2020-08-04 15:48:32 +02:00
parent 2ae557eb04
commit 9566538823
3 changed files with 3 additions and 4 deletions
-2
View File
@@ -596,8 +596,6 @@ int rtems_termios_poll(
#define RTEMS_TERMIOS_NUMBER_BAUD_RATES 25
extern rtems_mutex rtems_termios_ttyMutex;
#ifdef __cplusplus
}
#endif
+3
View File
@@ -113,6 +113,9 @@ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument);
#define TERMIOS_RX_PROC_EVENT RTEMS_EVENT_1
#define TERMIOS_RX_TERMINATE_EVENT RTEMS_EVENT_0
static rtems_mutex rtems_termios_ttyMutex =
RTEMS_MUTEX_INITIALIZER( "termios" );
static void
rtems_termios_obtain (void)
{
@@ -24,8 +24,6 @@
#include <rtems/termiostypes.h>
rtems_mutex rtems_termios_ttyMutex = RTEMS_MUTEX_INITIALIZER( "termios" );
void
rtems_termios_device_lock_acquire_default(
rtems_termios_device_context *ctx,