mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Does not really support multiprocessing so do not even try to
build it.
This commit is contained in:
@@ -74,7 +74,7 @@ int _POSIX_Message_queue_Create_support(
|
|||||||
attr = *attr_ptr;
|
attr = *attr_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if 0 && defined(RTEMS_MULTIPROCESSING)
|
||||||
if ( pshared == PTHREAD_PROCESS_SHARED &&
|
if ( pshared == PTHREAD_PROCESS_SHARED &&
|
||||||
!( _Objects_MP_Allocate_and_open( &_POSIX_Message_queue_Information, 0,
|
!( _Objects_MP_Allocate_and_open( &_POSIX_Message_queue_Information, 0,
|
||||||
the_mq->Object.id, FALSE ) ) ) {
|
the_mq->Object.id, FALSE ) ) ) {
|
||||||
@@ -112,14 +112,14 @@ int _POSIX_Message_queue_Create_support(
|
|||||||
the_mq_attr,
|
the_mq_attr,
|
||||||
attr.mq_maxmsg,
|
attr.mq_maxmsg,
|
||||||
attr.mq_msgsize,
|
attr.mq_msgsize,
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if 0 && defined(RTEMS_MULTIPROCESSING)
|
||||||
_POSIX_Message_queue_MP_Send_extract_proxy
|
_POSIX_Message_queue_MP_Send_extract_proxy
|
||||||
#else
|
#else
|
||||||
NULL
|
NULL
|
||||||
#endif
|
#endif
|
||||||
) ) {
|
) ) {
|
||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if 0 && defined(RTEMS_MULTIPROCESSING)
|
||||||
if ( pshared == PTHREAD_PROCESS_SHARED )
|
if ( pshared == PTHREAD_PROCESS_SHARED )
|
||||||
_Objects_MP_Close( &_POSIX_Message_queue_Information, the_mq->Object.id );
|
_Objects_MP_Close( &_POSIX_Message_queue_Information, the_mq->Object.id );
|
||||||
#endif
|
#endif
|
||||||
@@ -137,7 +137,7 @@ int _POSIX_Message_queue_Create_support(
|
|||||||
|
|
||||||
*message_queue = the_mq;
|
*message_queue = the_mq;
|
||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if 0 && defined(RTEMS_MULTIPROCESSING)
|
||||||
if ( pshared == PTHREAD_PROCESS_SHARED )
|
if ( pshared == PTHREAD_PROCESS_SHARED )
|
||||||
_POSIX_Message_queue_MP_Send_process_packet(
|
_POSIX_Message_queue_MP_Send_process_packet(
|
||||||
POSIX_MESSAGE_QUEUE_MP_ANNOUNCE_CREATE,
|
POSIX_MESSAGE_QUEUE_MP_ANNOUNCE_CREATE,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ void _POSIX_Message_queue_Delete(
|
|||||||
|
|
||||||
_POSIX_Message_queue_Free( the_mq );
|
_POSIX_Message_queue_Free( the_mq );
|
||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if 0 && defined(RTEMS_MULTIPROCESSING)
|
||||||
if ( the_mq->process_shared == PTHREAD_PROCESS_SHARED ) {
|
if ( the_mq->process_shared == PTHREAD_PROCESS_SHARED ) {
|
||||||
|
|
||||||
_Objects_MP_Close(
|
_Objects_MP_Close(
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ int mq_unlink(
|
|||||||
_Objects_Get_index( the_mq_id )
|
_Objects_Get_index( the_mq_id )
|
||||||
);
|
);
|
||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if 0 && defined(RTEMS_MULTIPROCESSING)
|
||||||
if ( the_mq->process_shared == PTHREAD_PROCESS_SHARED ) {
|
if ( the_mq->process_shared == PTHREAD_PROCESS_SHARED ) {
|
||||||
_Objects_MP_Close( &_POSIX_Message_queue_Information, the_mq_id );
|
_Objects_MP_Close( &_POSIX_Message_queue_Information, the_mq_id );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user