Home
last modified time | relevance | path

Searched refs:num_locks (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/dports/devel/ga/ga-5.8/armci/src/locks/
H A Dlocks.c123 if(num_locks > NUM_LOCKS) armci_die("To many locks requested", num_locks); in CreateInitLocks()
134 for(i=0; i<num_locks; i++){ in CreateInitLocks()
159 for(i=0; i<num_locks; i++){ in InitLocks()
197 if(num_locks > NUM_LOCKS) armci_die("To many locks requested", num_locks); in CreateInitLocks()
218 if(num_locks > NUM_LOCKS) armci_die("To many locks requested", num_locks); in InitLocks()
268 if(num_locks > NUM_LOCKS) armci_die("To many locks requested", num_locks); in CreateInitLocks()
271 InitLocks(num_locks, *lockid); in CreateInitLocks()
280 for(i=0;i<num_locks;i++){ in InitLocks()
285 num_alloc_locks = num_locks; in InitLocks()
326 if(num_locks > NUM_LOCKS) armci_die("To many locks requested", num_locks); in CreateInitLocks()
[all …]
/dports/net/samba412/samba-4.12.15/ctdb/utils/ping_pong/
H A Dping_pong.c119 static void ping_pong(int fd, int num_locks) in ping_pong() argument
128 ret = ftruncate(fd, num_locks+1); in ping_pong()
146 munmap(p, num_locks+1); in ping_pong()
164 (i+1) % num_locks, strerror(errno)); in ping_pong()
194 i = (i+1) % num_locks; in ping_pong()
196 if (loops > num_locks && incr != last_incr) { in ping_pong()
213 munmap(p, num_locks+1); in ping_pong()
233 int fd, num_locks; in main() local
294 num_locks = atoi(argv[1]); in main()
295 if (num_locks <= 0) { in main()
[all …]
/dports/sysutils/lizardfs/lizardfs-3.12.0/utils/
H A Dping_pong.cc88 static void ping_pong(int fd, int num_locks) in ping_pong() argument
97 ret = ftruncate(fd, num_locks+1); in ping_pong()
104 p = (unsigned char *)mmap(NULL, num_locks+1, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in ping_pong()
111 val = (unsigned char *)calloc(num_locks+1, sizeof(unsigned char)); in ping_pong()
123 if (lock_range(fd, (i+1) % num_locks, 1) != 0) { in ping_pong()
125 (i+1) % num_locks, strerror(errno)); in ping_pong()
152 i = (i+1) % num_locks; in ping_pong()
154 if (loops > num_locks && incr != last_incr) { in ping_pong()
179 int fd, num_locks; in main() local
211 num_locks = atoi(argv[1]); in main()
[all …]
/dports/net/openmpi3/openmpi-3.1.6/opal/mca/pmix/pmix2x/pmix/src/mca/gds/ds21/
H A Dgds_ds21_lock_pthread.c44 uint32_t num_locks; member
65 uint32_t num_locks; member
84 p->num_locks = 0; in ncon()
193 seg_hdr->num_locks = local_size; in pmix_gds_ds21_lock_init()
240 lock_item->num_locks = seg_hdr->num_locks; in pmix_gds_ds21_lock_init()
298 uint32_t num_locks; in pmix_ds21_lock_wr_get() local
310 num_locks = lock_item->num_locks; in pmix_ds21_lock_wr_get()
331 for(i = 0; i < num_locks; i++) { in pmix_ds21_lock_wr_get()
345 uint32_t num_locks; in pmix_ds21_lock_wr_rel() local
358 num_locks = lock_item->num_locks; in pmix_ds21_lock_wr_rel()
[all …]
/dports/net/openmpi/openmpi-4.1.1/opal/mca/pmix/pmix3x/pmix/src/mca/gds/ds21/
H A Dgds_ds21_lock_pthread.c43 uint32_t num_locks; member
64 uint32_t num_locks; member
83 p->num_locks = 0; in ncon()
192 seg_hdr->num_locks = local_size; in pmix_gds_ds21_lock_init()
239 lock_item->num_locks = seg_hdr->num_locks; in pmix_gds_ds21_lock_init()
297 uint32_t num_locks; in pmix_ds21_lock_wr_get() local
309 num_locks = lock_item->num_locks; in pmix_ds21_lock_wr_get()
330 for(i = 0; i < num_locks; i++) { in pmix_ds21_lock_wr_get()
344 uint32_t num_locks; in pmix_ds21_lock_wr_rel() local
357 num_locks = lock_item->num_locks; in pmix_ds21_lock_wr_rel()
[all …]
/dports/security/hitch/hitch-1.7.0/src/
H A Dhssl_locks.c46 static int num_locks = 0; variable
56 assert(type >= 0 && type < num_locks); in hssl_lock_cb()
72 num_locks = CRYPTO_num_locks(); in HSSL_Locks_Init()
73 assert(num_locks > 0); in HSSL_Locks_Init()
74 locks = malloc(sizeof (pthread_mutex_t) * num_locks); in HSSL_Locks_Init()
76 for (i = 0; i < num_locks; i++) in HSSL_Locks_Init()
/dports/net/samba412/samba-4.12.15/source3/locking/
H A Dbrlock.c51 unsigned int num_locks; member
81 return brl->num_locks; in brl_num_locks()
479 br_lck->num_locks, in brl_lock_windows_default()
504 br_lck->num_locks += 1; in brl_lock_windows_default()
956 br_lck->num_locks = count; in brl_lock_posix()
1039 unsigned num_locks, in brl_delete_lock_struct() argument
1112 br_lck->num_locks -= 1; in brl_unlock_windows_default()
1123 br_lck->num_locks); in brl_unlock_windows_default()
1455 if (br_lck->num_locks) { in brl_close_fnum()
1732 br_lck->num_locks -= 1; in byte_range_lock_flush()
[all …]
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/libgit2-sys-0.12.23+1.2.0/libgit2/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/devel/git-delta/delta-0.9.2/cargo-crates/libgit2-sys-0.12.24+1.3.0/libgit2/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/libgit2-sys-0.12.23+1.2.0/libgit2/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/devel/libgit2/libgit2-1.3.0/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/libgit2-sys-0.12.26+1.3.0/libgit2/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/libgit2-sys-0.12.24+1.3.0/libgit2/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/textproc/mdbook-linkcheck/mdbook-linkcheck-0.7.6/cargo-crates/libgit2-sys-0.12.24+1.3.0/libgit2/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/lang/rust/rustc-1.58.1-src/vendor/libgit2-sys/libgit2/src/streams/
H A Dopenssl_legacy.c151 int num_locks, i; in shutdown_ssl_locking() local
153 num_locks = CRYPTO_num_locks(); in shutdown_ssl_locking()
156 for (i = 0; i < num_locks; ++i) in shutdown_ssl_locking()
169 int num_locks, i; in git_openssl_set_locking() local
187 num_locks = CRYPTO_num_locks(); in git_openssl_set_locking()
188 openssl_locks = git__calloc(num_locks, sizeof(git_mutex)); in git_openssl_set_locking()
191 for (i = 0; i < num_locks; i++) { in git_openssl_set_locking()
/dports/databases/percona56-client/percona-server-5.6.51-91.0/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/percona-pam-for-mysql/percona-server-5.6.51-91.0/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/percona57-client/percona-server-5.7.36-39/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/percona57-server/percona-server-5.7.36-39/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/percona56-server/percona-server-5.6.51-91.0/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/mariadb104-server/mariadb-10.4.24/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/mariadb104-client/mariadb-10.4.24/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/mariadb103-client/mariadb-10.3.34/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
/dports/databases/mariadb103-server/mariadb-10.3.34/storage/tokudb/PerconaFT/locktree/tests/
H A Dlocktree_simple_lock.cc104 const int64_t num_locks = 10000; in test_simple_lock() local
106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock()
107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
111 int64_t k = rand() % num_locks; in test_simple_lock()
118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock()
126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()

12345678910>>...19