]> Kevux Git Server - fll/commitdiff
Bugfix: Incorrect macro definition _di_pthread_support_ vs _di_thread_support_.
authorKevin Day <thekevinday@gmail.com>
Fri, 13 Jan 2023 23:56:06 +0000 (17:56 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 13 Jan 2023 23:56:06 +0000 (17:56 -0600)
The _di_pthread_support_ is used in the project but all of the programs have _di_thread_support_.
The project name is f_thread and not f_pthread so favor _di_thread_support_ over _di_pthread_support_.

level_0/f_thread/data/build/defines
level_2/fll_execute/c/execute.h
level_2/fll_execute/c/private-execute.c
level_2/fll_execute/data/build/defines
level_2/fll_execute/data/build/settings

index bd9bb119d2703a82153a4b164b426825dd3eb285..29febee57aee6559c48f52fb578e58b89a30d974 100644 (file)
@@ -1,5 +1,5 @@
 # fss-0000
 
-_di_pthread_support_ disables thread support, which is intended to disable this entire f_thread project. This is not directly used by this library, but is instead used by other libraries to not include f_thread (such as special compilations like monolithic). Future versions may potentially support this, providing stubs.
+_di_thread_support_ disables thread support, which is intended to disable this entire f_thread project. This is not directly used by this library, but is instead used by other libraries to not include f_thread (such as special compilations like monolithic). Future versions may potentially support this, providing stubs.
 _pthread_attr_unsupported_ Disable non-portable functionality associated with pthread_attr.
 _pthread_sigqueue_unsupported_ Disable GNU specific sigqueue().
index 261bf292ec491dbc4d8d03315cc57bda12454dfb..f834dcaef7184750799e0c979a34f802ecd95932 100644 (file)
@@ -43,9 +43,9 @@
 #include <fll/level_0/path.h>
 #include <fll/level_0/signal.h>
 
-#ifndef _di_pthread_support_
+#ifndef _di_thread_support_
   #include <fll/level_0/thread.h>
-#endif // _di_pthread_support_
+#endif // _di_thread_support_
 
 // FLL-1 includes.
 #include <fll/level_1/control_group.h>
index 5c7738d088e46c84035b0db3044f424fcc03c110..763cfd37c424a75250d9cb61015089a9481028e3 100644 (file)
@@ -300,10 +300,10 @@ extern "C" {
     }
 
     if (parameter && parameter->signals) {
-      #ifdef _di_pthread_support_
+      #ifdef _di_thread_support_
         f_signal_mask(SIG_BLOCK, &parameter->signals->block, 0);
         f_signal_mask(SIG_UNBLOCK, &parameter->signals->block_not, 0);
-      #else // _di_pthread_support_
+      #else // _di_thread_support_
         if (parameter->option & FL_execute_parameter_option_threadsafe_d) {
           f_thread_signal_mask(SIG_BLOCK, &parameter->signals->block, 0);
           f_thread_signal_mask(SIG_UNBLOCK, &parameter->signals->block_not, 0);
@@ -312,7 +312,7 @@ extern "C" {
           f_signal_mask(SIG_BLOCK, &parameter->signals->block, 0);
           f_signal_mask(SIG_UNBLOCK, &parameter->signals->block_not, 0);
         }
-      #endif // _di_pthread_support_
+      #endif // _di_thread_support_
     }
 
     if (parameter && parameter->environment) {
@@ -488,10 +488,10 @@ extern "C" {
     }
 
     if (parameter && parameter->signals) {
-      #ifdef _di_pthread_support_
+      #ifdef _di_thread_support_
         f_signal_mask(SIG_BLOCK, &parameter->signals->block, 0);
         f_signal_mask(SIG_UNBLOCK, &parameter->signals->block_not, 0);
-      #else // _di_pthread_support_
+      #else // _di_thread_support_
         if (parameter->option & FL_execute_parameter_option_threadsafe_d) {
           f_thread_signal_mask(SIG_BLOCK, &parameter->signals->block, 0);
           f_thread_signal_mask(SIG_UNBLOCK, &parameter->signals->block_not, 0);
@@ -500,7 +500,7 @@ extern "C" {
           f_signal_mask(SIG_BLOCK, &parameter->signals->block, 0);
           f_signal_mask(SIG_UNBLOCK, &parameter->signals->block_not, 0);
         }
-      #endif // _di_pthread_support_
+      #endif // _di_thread_support_
     }
 
     if (parameter && parameter->environment) {
index 6a045caf8162d2aa42f3a1d48e8913e5d99d8dca..649b88bf2ad3a0ce74e17f1b9b2940ec4abcd364 100644 (file)
@@ -1,6 +1,6 @@
 # fss-0000
 
 _di_libcap_ Disable libcap support, allow for compiling and linking without libcap (-lcap).
-_di_pthread_support_ Disable support for compiling and depending on pthreads (and projects like f_thread).
+_di_thread_support_ Disable support for compiling and depending on pthreads (and projects like f_thread).
 _pthread_attr_unsupported_ Disable non-portable functionality associated with pthread_attr.
 _pthread_sigqueue_unsupported_ Disable GNU specific sigqueue().
index 3421332d4e30350ee85476ef6bd29d4651d667c6..3e76c083ea0587345a11116577afb491584289f5 100644 (file)
@@ -51,7 +51,7 @@ environment PATH LD_LIBRARY_PATH
 
 #defines -D_di_libcap_
 defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_
-defines-individual_threadless -D_di_pthread_support_
+defines-individual_threadless -D_di_thread_support_
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses