Changeset b2c491a0 in rtems for cpukit/rtems/macros/rtems
- Timestamp:
- 08/22/95 14:52:08 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- bb322a0
- Parents:
- 61361688
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/rtems/macros/rtems/rtems/message.inl
r61361688 rb2c491a0 24 24 25 25 #define _Message_queue_Copy_buffer( _source, _destination ) \ 26 *(Message_queue_Buffer *)(_destination) = \ 27 *(Message_queue_Buffer *)(_source) 26 memcpy( _destination, _source, _size) 28 27 29 28 /*PAGE … … 87 86 /*PAGE 88 87 * 89 * _Message_queue_Allocate90 *91 */92 93 #define _Message_queue_Allocate() \94 (Message_queue_Control *) \95 _Objects_Allocate( &_Message_queue_Information )96 97 /*PAGE98 *99 88 * _Message_queue_Free 100 89 * … … 102 91 103 92 #define _Message_queue_Free( _the_message_queue ) \ 104 _Objects_Free( &_Message_queue_Information, \ 105 &(_the_message_queue)->Object ) 93 do { \ 94 \ 95 if ( (_the_messsage_queue)->message_buffers ) { \ 96 _Workspace_Free((void *) (_the_message_queue)->message_buffers); \ 97 (_the_message_queue)->message_buffers = 0; \ 98 } 99 \ 100 _Objects_Free( \ 101 &_Message_queue_Information, \ 102 &(_the_message_queue)->Object \ 103 ); \ 104 } while ( 0 ) 105 106 106 107 107 /*PAGE
Note: See TracChangeset
for help on using the changeset viewer.