File tree Expand file tree Collapse file tree 4 files changed +37
-1
lines changed Expand file tree Collapse file tree 4 files changed +37
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Ubuntu (multithread)
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ stable, develop ]
6
+
7
+ push :
8
+ branches : [ stable, develop ]
9
+
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+ PDC :
14
+ runs-on : ubuntu-latest
15
+ timeout-minutes : 60
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+
20
+ - name : Dependencies
21
+ run : .github/workflows/dependencies-linux.sh
22
+
23
+ - name : Build PDC
24
+ run : |
25
+ mkdir build && cd build
26
+ cmake ../ -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=ON -DBUILD_TESTING=ON -DPDC_ENABLE_MPI=ON -DPDC_ENABLE_PROFILING=ON -DPDC_ENABLE_MULTITHREAD=ON -DCMAKE_C_COMPILER=mpicc -DCMAKE_POLICY_VERSION_MINIMUM=3.5
27
+ make -j2
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49
49
extern "C" {
50
50
#endif
51
51
52
+ #ifdef ENABLE_MULTITHREAD
53
+ #include "mercury_thread_mutex.h"
54
+
55
+ extern hg_thread_mutex_t hash_table_new_mutex_g ;
56
+ #endif
57
+
52
58
/**
53
59
* A hash table structure.
54
60
*/
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32
32
#include "alloc-testing.h"
33
33
#endif
34
34
35
+ #ifdef ENABLE_MULTITHREAD
36
+ hg_thread_mutex_t hash_table_new_mutex_g ;
37
+ #endif
38
+
35
39
struct _HashTableEntry {
36
40
HashTablePair pair ;
37
41
HashTableEntry * next ;
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ extern int use_sqlite3_g;
71
71
/*****************************/
72
72
/* Library-private Variables */
73
73
/*****************************/
74
- hg_thread_mutex_t hash_table_new_mutex_g ;
75
74
hg_thread_mutex_t pdc_client_addr_mutex_g ;
76
75
hg_thread_mutex_t pdc_metadata_hash_table_mutex_g ;
77
76
hg_thread_mutex_t pdc_container_hash_table_mutex_g ;
You can’t perform that action at this time.
0 commit comments