Changeset 53092d1 in rtems for cpukit/posix/inline/rtems


Ignore:
Timestamp:
Apr 26, 2002, 11:39:01 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7ae7cf7
Parents:
e6ff222
Message:

2001-04-26 Joel Sherrill <joel@…>

  • include/rtems/posix/mqueue.h, inline/rtems/posix/mqueue.inl, src/mqueue.c, src/mqueueclose.c, src/mqueuecreatesupp.c, src/mqueuegetattr.c, src/mqueuenotify.c, src/mqueueopen.c, src/mqueuerecvsupp.c, src/mqueuesendsupp.c, src/mqueuesetattr.c: Per PR81 reworked to add a message queue descriptor separate from the underlying message queue. This allows non-blocking to follow the "open" not the underlying queue.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/inline/rtems/posix/mqueue.inl

    re6ff222 r53092d1  
    2222 */
    2323 
    24 RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void )
     24RTEMS_INLINE_ROUTINE
     25  POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void )
    2526{
    2627  return (POSIX_Message_queue_Control *)
    2728    _Objects_Allocate( &_POSIX_Message_queue_Information );
     29}
     30 
     31/*PAGE
     32 *
     33 *  _POSIX_Message_queue_Allocate_fd
     34 */
     35 
     36RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *
     37  _POSIX_Message_queue_Allocate_fd( void )
     38{
     39  return (POSIX_Message_queue_Control_fd *)
     40    _Objects_Allocate( &_POSIX_Message_queue_Information_fds );
    2841}
    2942 
     
    3851{
    3952  _Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object );
     53}
     54
     55/*PAGE
     56 *
     57 *  _POSIX_Message_queue_Free_fd
     58 */
     59 
     60RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (
     61  POSIX_Message_queue_Control_fd *the_mq_fd
     62)
     63{
     64  _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
    4065}
    4166
     
    6590  return (POSIX_Message_queue_Control *)
    6691    _Objects_Get( &_POSIX_Message_queue_Information, id, location );
     92}
     93 
     94/*PAGE
     95 *
     96 *  _POSIX_Message_queue_Get_fd
     97 */
     98 
     99RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
     100  Objects_Id         id,
     101  Objects_Locations *location
     102)
     103{
     104  return (POSIX_Message_queue_Control_fd *)
     105    _Objects_Get( &_POSIX_Message_queue_Information_fds, id, location );
    67106}
    68107 
Note: See TracChangeset for help on using the changeset viewer.