eo ptr ind: pack memory, use in mmap fifo as recycle trash
authorJérémy Zurcher <jeremy@asynk.ch>
Fri, 3 May 2013 19:28:32 +0000 (21:28 +0200)
committerJérémy Zurcher <jeremy@asynk.ch>
Fri, 3 May 2013 19:28:32 +0000 (21:28 +0200)
commitf769128dcad91da002529ee9e2a27f82c828461d
treed5747d6a06965b5a513b5d282bcad1c093e6e0f6
parent88cf0cf460e35902f26c11c4229934559c9a8ecb
eo ptr ind: pack memory, use in mmap fifo as recycle trash

  - pack active flag and generation nbr in an _Eo_Id_Entry struct
  - replace Eina_Trash with a fifo which lives in mmaped memory owned by eo_id.
  - fifo uses indexes instead of pointers to spare memory
  - never used entries are served first, then those in the fifo
    are reused, thus we ensure that a freed entry won't soon be reused.
src/lib/eo/eo_ptr_indirection.c