From 4c69b74225cf6d9479caa7a31ab38fa6d70ad669 Mon Sep 17 00:00:00 2001 From: Chad Elliott Date: Thu, 6 Jun 2019 09:15:02 -0500 Subject: - Use ACE_OS::send and ACE_OS::recv on MQX, instead of write and read. - Added static casts where pid_t is assumed to be an int. - Use configurable macro for the "use_select" parameter. - MQX does not follow conventional standards when it comes to HTONS and NTOHS and must be configured accordingly. - Modified ACE_Handle_Set so that the use of fd_array is not conditional upon ACE_WIN32. It is now enabled through ACE_HANDLE_SET_USES_FD_ARRAY. - Implement UNIX File IO Functions for MQX in MQX_Filesystem.* - Use the existing implementation to simulate condition variables. - Use emulation for diropen on MQX as is done for Windows. - Convert from MQX error to standard error number. - Use _mqx_exit in ACE_OS::_exit for MQX. - Added a nop in ACE_OS::ioctl for MQX. - Added a definition of ACE_TMAIN for MQX so that MQX is initialized and RTCS and the MQX Filesystem code is initialized before calling ace_main_i(). - Fixed a compile error in SOCK_Dgram.cpp introduced months ago. - Use struct initialization to avoid using the l_linger member directly. - Modified ACE_Select_Reactor_Base to use a hash map for handle storage based on ACE_SELECT_REACTOR_BASE_USES_HASH_MAP instead of ACE_WIN32. - Added the IAR compiler to define ACE_NOTREACHED(a) as empty. - Made ACE_IPPROTO_TCP conditionally defined. - Added error values required for ACE. - Skip the wide-character strtok test if ACE_LACKS_WCSTOK is defined in ACE/tests/OS_Test.cpp. - Added the ability to compile tests so that they output to stderr instead of a file. --- ACE/ace/OS_NS_Thread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ACE/ace/OS_NS_Thread.h') diff --git a/ACE/ace/OS_NS_Thread.h b/ACE/ace/OS_NS_Thread.h index f932a701cea..38b62b83392 100644 --- a/ACE/ace/OS_NS_Thread.h +++ b/ACE/ace/OS_NS_Thread.h @@ -356,7 +356,7 @@ public: /// Queue up threads waiting for the condition to become signaled. ACE_sema_t sema_; -# if defined (ACE_VXWORKS) +# if defined (ACE_VXWORKS) || defined (ACE_MQX) /** * A semaphore used by the broadcast/signal thread to wait for all * the waiting thread(s) to wake up and be released from the @@ -391,10 +391,12 @@ struct ACE_Export ACE_condattr_t int type; }; +#if !defined (ACE_MQX) struct ACE_Export ACE_mutexattr_t { int type; }; +#endif ACE_END_VERSIONED_NAMESPACE_DECL -- cgit v1.2.1