Changeset 149 for trunk/include/sh_mem.h


Ignore:
Timestamp:
Jan 7, 2008, 8:52:13 PM (17 years ago)
Author:
katerina
Message:

Make sh_hash.c thread-safe, remove plenty of tiny allocations, improve sh_mem_dump, modify port check to run as thread, and fix unsetting of sh_thread_pause_flag (was too early).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_mem.h

    r1 r149  
    3838#else
    3939
     40#if defined(__GNUC__) && (__GNUC__ >= 3)
     41#undef  SH_GNUC_MALLOC
     42#define SH_GNUC_MALLOC   __attribute__((malloc))
     43#else
     44#undef  SH_GNUC_MALLOC
     45#define SH_GNUC_MALLOC
     46#endif
    4047
    4148void   sh_mem_free (/*@only@*//*@out@*//*@null@*/ void * a);
    42 /*@only@*//*@notnull@*/void * sh_mem_malloc (size_t size);
     49/*@only@*//*@notnull@*/void * sh_mem_malloc (size_t size) SH_GNUC_MALLOC;
    4350
    4451#define SH_FREE(a)   sh_mem_free(a)
Note: See TracChangeset for help on using the changeset viewer.