- Established naming convention:
ttak_<module>_<func>andttak_<module>_<type_t>. - Memory Management (
mem):- Created basic structure for
ttak_mem_alloc,ttak_mem_free,ttak_mem_realloc. - Restored original detailed usage comments in
include/mem/mem.h.
- Created basic structure for
- Async Tasks (
async/task):- Defined
ttak_task_tand basic lifecycle functions.
- Defined
- Thread Pool (
thread/pool):- Defined
ttak_thread_pool_tskeleton.
- Defined
- Synchronization (
sync):- Created
pthreadwrappers for mutex and condition variables withttak_prefix.
- Created
- Hash Map (
ht):- Fixed naming inconsistencies and syntax errors in
src/ht/map.c. - Implemented
gen_hashinsrc/ht/hash.c. - Unified function names to use
ttak_prefix ininclude/ht/map.h. - Fixed missing
#include <stddef.h>and broken#ifndefininclude/ht/hash.h. - Restored Shortcuts: Re-added
#define ttak_... tt_...macros ininclude/ht/map.hto support original short names while maintaining naming convention. - Restored Comments: Fully restored detailed comments in
src/ht/map.cregarding memory initialization, load factor, and resizing logic.
- Fixed naming inconsistencies and syntax errors in
- Atomic (
atomic):- Fixed
ttak_generic_func_ttypedef syntax. - Implemented skeletal
atomic_function_execute.
- Fixed
- Build System:
- Verified successful compilation of
lib/libttak.ausingmake.
- Verified successful compilation of
- ht/map.h: Added shortcut macros (
ttak_create_map->tt_create_map, etc.) to align with original usage. - ht/map.c: Reverted comments to original detailed versions. Renamed functions to
ttak_to match header declarations (which then expand tott_symbols via macros).