]> Kevux Git Server - fll/commit
Update: memory function tweaks, update thread code, and improve execute functions.
authorKevin Day <thekevinday@gmail.com>
Fri, 12 Feb 2021 03:47:36 +0000 (21:47 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 12 Feb 2021 03:52:50 +0000 (21:52 -0600)
commit79e8e7157a92f404ab4259a53c8af302d925f4e2
treeb028288b8c6c2e6754f07366004fc587f7154aa8
parent71d87d1a1c3e77e046cd1a8069ab688b9054ce9b
Update: memory function tweaks, update thread code, and improve execute functions.

Restructure the memory functions a little.
Add comments about realloc() potentially changing the pointer address.

A few of the thread type macros are missing semicolons.
Remove f_macro_thread_mutex_t_clear().
There are likely other thread types that cannot be set to 0, and they will be correct as I discover them.

Rename the thread condition block and unblock functions.
Add missing f_thread_detach() implementation.

The execute fnctio fll_execute_program() should use pid_t when returning a PID.
This is potentially different from int, so instead use a void * and cast to an int * or pid_t * as necessary.
14 files changed:
level_0/f_memory/c/memory.h
level_0/f_memory/c/private-memory.c
level_0/f_thread/c/thread-common.h
level_0/f_thread/c/thread.c
level_0/f_thread/c/thread.h
level_2/fll_execute/c/execute.c
level_2/fll_execute/c/execute.h
level_2/fll_execute/c/private-execute.c
level_2/fll_execute/c/private-execute.h
level_3/fake/c/private-build.c
level_3/fake/c/private-fake.c
level_3/fake/c/private-make.c
level_3/firewall/c/firewall.c
level_3/firewall/c/private-firewall.c