Ignore:
Timestamp:
Jan 9, 2008, 10:35:10 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
bc0ff47
Parents:
4d320062
Message:

2008-01-09 Joel Sherrill <joel.sherrill@…>

  • score/include/rtems/score/wkspace.h, score/inline/rtems/score/wkspace.inl, score/src/wkspace.c: Do not inline _Workspace_Free or _Workspace_Allocate since they are not always inlined and actually smaller overall as subroutines. They are not particularly time critical so inlining is not absolutely necessary.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/wkspace.h

    r4d320062 r5b33dc80  
    5656);
    5757
     58/** @brief Allocate Memory from Workspace
     59 *
     60 *  This routine returns the address of a block of memory of size
     61 *  bytes.  If a block of the appropriate size cannot be allocated
     62 *  from the workspace, then NULL is returned.
     63 *
     64 *  @param size is the requested size
     65 *
     66 *  @return a pointer to the requested memory or NULL.
     67 */
     68void *_Workspace_Allocate(
     69  size_t   size
     70);
     71
     72/** @brief Free Memory to the Workspace
     73 *
     74 *  This function frees the specified block of memory.  If the block
     75 *  belongs to the Workspace and can be successfully freed, then
     76 *  TRUE is returned.  Otherwise FALSE is returned.
     77 *
     78 *  @param block is the memory to free
     79 *
     80 *  @return TRUE if the free was successful.
     81 */
     82
     83boolean _Workspace_Free(
     84  void *block
     85);
     86
    5887/** @brief Workspace Allocate or Fail with Fatal Error
    5988 *
Note: See TracChangeset for help on using the changeset viewer.