]> 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:57:37 +0000 (17:57 -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 a8acad40a91ad18d324551970b4a31c20698413b..244dcbc44500872afc78b3a6c5789da5c7f352da 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 69f3943b58a3614cb68b6e5c6238961fa726323b..50dbe65ffc1ed7ed17ce658b1769eedea8717c3b 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 ec1d751462892d94b49bd489f2ae7552679b1e16..f676f4ff98de75742dd26f3e72f4313dfca74fb5 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