/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/lock/ |
H A D | lock_timer.c | 26 __lock_set_timeout(env, locker, timeout, op) 28 DB_LOCKER *locker; 34 if (locker == NULL) 37 ret = __lock_set_timeout_internal(env, locker, timeout, op); 87 * -- inherit timeout values from parent locker. 95 __lock_inherit_timeout(env, parent, locker) 97 DB_LOCKER *parent, *locker; 107 * the child locker at this point. 116 locker->tx_expire = parent->tx_expire; 119 locker [all...] |
H A D | lock_stub.c | 127 __lock_get_pp(dbenv, locker, flags, obj, lock_mode, lock) 129 u_int32_t locker, flags; 134 COMPQUIET(locker, 0); 190 __lock_vec_pp(dbenv, locker, flags, list, nlist, elistp) 192 u_int32_t locker, flags; 196 COMPQUIET(locker, 0); 336 __lock_get(env, locker, flags, obj, lock_mode, lock) 338 DB_LOCKER *locker; 345 COMPQUIET(locker, NULL); 366 __lock_inherit_timeout(env, parent, locker) [all...] |
H A D | lock_id.c | 97 /* Allocate a locker for this id. */ 112 * Set the thread_id in an existing locker. 169 __db_errx(env, "Unknown locker id: %lx", (u_long)id); 184 * Free a locker id. 217 * Set the current locker ID and current maximum unused ID (for 243 * Get a locker in the locker hash table. The create parameter 244 * indicates if the locker should be created if it doesn't exist in 247 * This must be called with the locker mutex lock if create == 1. 255 __lock_getlocker(lt, locker, creat [all...] |
H A D | lock_list.c | 216 __lock_get_list(env, locker, flags, lock_mode, list) 218 DB_LOCKER *locker; 267 if ((ret = __lock_get_internal(lt, locker,
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/test/ |
H A D | lock001.tcl | 10 # TEST and puts for a single locker. 39 set locker [$env lock_id] 44 set lockp [$env lock_get $m $locker $obj] 51 # Get a bunch of locks for the same locker; these should work 53 puts "\tLock001.b: Get a bunch of locks for the same locker" 55 set lockp [$env lock_get $m $locker $obj ] 66 set lockp [$env lock_get -nowait write $locker $obj] 76 set lockp [$env lock_get $i $locker $obj] 82 # Change the locker 83 set locker [ [all...] |
H A D | lock006.tcl | 12 # TEST 2. Release with put_obj (all locks for a given locker/obj). 13 # TEST 3. Release with put_all (all locks for a given locker). 35 set locker [$env lock_id] 42 set lockp [$env lock_vec $locker "get $obj $m"] 46 [$env lock_vec $locker "put $lockp"] 0 50 # Get a bunch of locks for the same locker; these should work 52 puts "\tLock006.b: Get many locks for 1 locker,\ 55 set lockp [$env lock_vec $locker "get $obj $m"] 60 error_check_good release [$env lock_vec $locker put_all] 0 63 puts "\tLock006.c: Get many locks for 1 locker,\ [all...] |
H A D | lockscript.tcl | 42 catch { $e lock_id } locker 43 error_check_good locker [is_valid_locker $locker] TRUE 45 puts -nonewline "Beginning execution for $locker: $numiters $numobjs " 66 puts "[timestamp -c] $locker $lnum: $rw $obj" 69 catch {$e lock_get $rw $locker $obj} lockp 86 puts "[timestamp -c] $locker sleeping" 91 puts "[timestamp -c] $locker awake" 94 puts "[timestamp -c] $locker released locks" 113 puts "[timestamp -c] $locker Complet [all...] |
H A D | dead001.tcl | 46 set locker [$env lock_id] 49 $testdir $t $locker $i $n" 52 $testdir $t $locker $i $n &]
|
H A D | dead002.tcl | 37 set locker [$env lock_id] 40 $testdir $t $locker $i $n" 43 $testdir $t $locker $i $n &]
|
H A D | dead003.tcl | 38 set locker [$env lock_id] 41 $t $locker $i $n >& \ 47 $t $locker $i $n &]
|
H A D | mpoolscript.tcl | 80 set locker [$e lock_id] 81 set lock [$e lock_get write $locker 0:$id] 112 set lock [$e lock_get write $locker $fnum:$p]
|
H A D | dead004.tcl | 13 # Since this is used for transaction systems, the locker ID is what we 16 # The set up is that we have a total of 6 processes. The oldest (locker 0) 17 # and the youngest (locker 5) simply acquire a lock, hold it for a long time 19 # a lock on (N+1) mod 4. The deadlock detector ought to pick locker 1 or 4 51 set locker [$env lock_id] 54 ddoyscript.tcl $testdir $locker $n $a $i" 58 $testdir $locker $n $a $i &]
|
H A D | dead005.tcl | 36 set locker [$env lock_id] 39 ddscript.tcl $testdir $t $locker $i $n" 43 $testdir $t $locker $i $n &]
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/db/internal/ |
H A D | db_java.java | 12 public static void DbEnv_lock_vec(DbEnv dbenv, int locker, int flags, com.sleepycat.db.LockRequest[] list, int offset, int nlist) throws com.sleepycat.db.DatabaseException { argument 13 db_javaJNI.DbEnv_lock_vec(DbEnv.getCPtr(dbenv), dbenv, locker, flags, list, offset, nlist);
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/fileops/ |
H A D | fop_util.c | 34 * environment (ENV), the locker id to use in acquiring the lock (ID) 99 __fop_lock_handle(env, dbp, locker, mode, elockp, flags) 102 DB_LOCKER *locker; 132 ret = __lock_get(env, locker, 142 locker, flags, reqs, 2, &ereq)) == 0) { 149 dbp->cur_locker = locker; 211 DB_LOCKER *locker; local 237 * rename and remove where this dbp already has a locker, so make 243 dbp->locker == DB_LOCK_INVALIDID) { 244 if ((ret = __lock_id(env, NULL, &dbp->locker)) ! [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/db/ |
H A D | db_cds.c | 52 DB_LOCKER *locker; local 69 ret = __lock_vec(env, txn->locker, 0, &lreq, 1, NULL); 72 locker = txn->locker; 75 if ((t_ret = __lock_id_free(env, locker)) != 0 && ret == 0) 154 if ((ret = __lock_id(env, &txn->txnid, &txn->locker)) != 0)
|
H A D | db_remove.c | 93 dbp->locker = NULL; 99 * If we invalidate the locker id (dbp->locker), then the close 102 dbp->locker = NULL; 318 DB_LOCKER *locker; local 324 locker = NULL; 337 if (dbp->locker == NULL && 338 (ret = __lock_id(env, NULL, &dbp->locker)) != 0) 340 locker = txn == NULL ? dbp->locker [all...] |
H A D | db_am.c | 34 __db_cursor_int(dbp, ip, txn, dbtype, root, flags, locker, dbcp) 41 DB_LOCKER *locker; 102 * If we are not threaded, we share a locker ID among 199 dbc->locker = txn->locker; 203 * new cursor with a particular locker ID that is known 209 * cursor's locker ID. 218 * In these cases, our caller will pass a nonzero locker 219 * ID into this function. Use this locker ID instead of 220 * the default as the locker I [all...] |
H A D | db_rename.c | 95 dbp->locker = NULL; 101 * transaction. If we invalidate the locker (dbp->locker), 104 dbp->locker = NULL; 358 dbp, mdbp->locker, DB_LOCK_WRITE, NULL, NOWAIT_FLAG(txn))) != 0)
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/txn/ |
H A D | txn_util.c | 37 DB_LOCKER *locker; member in struct:__txn_event::__anon6373::__anon6376 148 * Add a lockevent to the commit-queue. The lock event indicates a locker 155 __txn_lockevent(env, txn, dbp, lock, locker) 160 DB_LOCKER *locker; 172 e->u.t.locker = locker; 184 * Remove a lock event because the locker is going away. We can remove 190 __txn_remlock(env, txn, lock, locker) 194 DB_LOCKER *locker; 201 (e->u.t.lock.off != lock->off && e->u.t.locker ! [all...] |
H A D | txn.c | 224 parent->locker, txn->locker); 225 /* No parent locker set yet. */ 239 if ((ret = __lock_set_timeout(env, txn->locker, 415 /* allocate a locker for this txn */ 417 __lock_getlocker(env->lk_handle, id, 1, &txn->locker)) != 0) 510 * that we have a locker associated with this transaction. 516 txn->txnid, 0, &txn->locker); 680 txn->locker, 0, &request, 1, NULL); 850 /* Allocate a locker fo [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/examples_cxx/ |
H A D | LockExample.cpp | 128 u_int32_t locker; local 138 lock_id(&locker); 178 ret = lock_get(locker, DB_LOCK_NOWAIT, &dbt,
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/dbinc/ |
H A D | lock.h | 19 * The locker id space is divided between the transaction manager and the lock 65 db_mutex_t mtx_lockers; /* mutex for locker allocation. */ 67 /* free locker header */ 74 u_int32_t locker_t_size; /* size of locker hash table */ 82 roff_t locker_off; /* offset of locker hash table */ 117 * Locker structures; these live in the locker hash table. 122 pid_t pid; /* Process owning locker ID */ 123 db_threadid_t tid; /* Thread owning locker ID */ 140 SH_LIST_HEAD(_held) heldby; /* Locks held by this locker. */ 187 DB_HASHTAB *locker_tab; /* Beginning of locker has [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/examples_c/ |
H A D | ex_lock.c | 43 u_int32_t locker, maxlocks; local 84 if ((ret = dbenv->lock_id(dbenv, &locker)) != 0) { 85 dbenv->err(dbenv, ret, "unable to get locker id"); 123 ret = dbenv->lock_get(dbenv, locker,
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/examples_java/src/db/ |
H A D | LockExample.java | 85 int len = 0, locker; 95 locker = dbenv.createLockerID(); 131 lock = dbenv.getLock(locker, true, entry, lock_type);
|