From 32bed038d8cd79adf41c812829a9d9d4812f46f4 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 8 Nov 2023 20:33:39 +0100 Subject: Updated open-graph --- examples/core/core_loading_thread.html | 177 ++++++++++++++++++++++++++++++++- 1 file changed, 176 insertions(+), 1 deletion(-) (limited to 'examples/core/core_loading_thread.html') diff --git a/examples/core/core_loading_thread.html b/examples/core/core_loading_thread.html index ee94475..c611c9e 100644 --- a/examples/core/core_loading_thread.html +++ b/examples/core/core_loading_thread.html @@ -1 +1,176 @@ -raylib web game
\ No newline at end of file +core loading thread // C11 atomic data types + +#include // Required for: clock() + +// Using C11 atomics for synchronization +// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization +static atomic_bool dataLoaded = false; // Data Loaded completion indicator +static void *LoadDataThread(void *arg); // Loading data thread function declaration + +static atomic_int dataProgress = 0; // Data progress accumulator + +//------------------------------------------------------------------------------------ +// Program main entry point +//------------------------------------------------------------------------------------ +int main(void) +{ + // Initialization + //---------------------"name=description> // C11 atomic data types + +#include // Required for: clock() + +// Using C11 atomics for synchronization +// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization +static atomic_bool dataLoaded = false; // Data Loaded completion indicator +static void *LoadDataThread(void *arg); // Loading data thread function declaration + +static atomic_int dataProgress = 0; // Data progress accumulator + +//------------------------------------------------------------------------------------ +// Program main entry point +//------------------------------------------------------------------------------------ +int main(void) +{ + // Initialization + //---------------------"property=og:image:alt> // C11 atomic data types + +#include // Required for: clock() + +// Using C11 atomics for synchronization +// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization +static atomic_bool dataLoaded = false; // Data Loaded completion indicator +static void *LoadDataThread(void *arg); // Loading data thread function declaration + +static atomic_int dataProgress = 0; // Data progress accumulator + +//------------------------------------------------------------------------------------ +// Program main entry point +//------------------------------------------------------------------------------------ +int main(void) +{ + // Initialization + //---------------------"property=og:description> // C11 atomic data types + +#include // Required for: clock() + +// Using C11 atomics for synchronization +// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization +static atomic_bool dataLoaded = false; // Data Loaded completion indicator +static void *LoadDataThread(void *arg); // Loading data thread function declaration + +static atomic_int dataProgress = 0; // Data progress accumulator + +//------------------------------------------------------------------------------------ +// Program main entry point +//------------------------------------------------------------------------------------ +int main(void) +{ + // Initialization + //---------------------"name=twitter:image:alt> // C11 atomic data types + +#include // Required for: clock() + +// Using C11 atomics for synchronization +// NOTE: A plain bool (or any plain data type for that matter) can't be used for inter-thread synchronization +static atomic_bool dataLoaded = false; // Data Loaded completion indicator +static void *LoadDataThread(void *arg); // Loading data thread function declaration + +static atomic_int dataProgress = 0; // Data progress accumulator + +//------------------------------------------------------------------------------------ +// Program main entry point +//------------------------------------------------------------------------------------ +int main(void) +{ + // Initialization + //---------------------"name=twitter:description>
\ No newline at end of file -- cgit v1.2.3