- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 192 for rlocked (0.04 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
* state: BLOCKED, WAITING, or TIMED_WAITING. */ @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait. void waitForThreadToEnterWaitState(Thread thread, long timeoutMillis) { long startTime = System.nanoTime(); for (; ; ) { Thread.State s = thread.getState();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:07:52 GMT 2025 - 37.8K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmHttpServletRequestTest.java
@Mock private Principal mockPrincipal; private NtlmHttpServletRequest ntlmRequest; @BeforeEach void setUp() { // Create a new NtlmHttpServletRequest with mocked dependencies before each test ntlmRequest = new NtlmHttpServletRequest(mockRequest, mockPrincipal); } /** * Test method for {@link NtlmHttpServletRequest#getRemoteUser()}.Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 2.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/WinErrorTest.java
* The interface has no instance methods, so the tests focus on * value correctness and array integrity. A tiny Mockito example * demonstrates that the interface can be mocked if another class * depends on it. */ public class WinErrorTest { @Nested @DisplayName("Constant value checks") class ConstantValues { @Test void successIsZero() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.7K bytes - Click Count (0) -
cmd/bucket-replication-stats.go
for { select { case <-r.movingAvgTicker.C: r.updateMovingAvg() case <-GlobalContext.Done(): return } } } func (r *ReplicationStats) updateMovingAvg() { r.RLock() for _, s := range r.Cache { for _, st := range s.Stats { st.XferRateLrg.measure.updateExponentialMovingAverage(time.Now()) st.XferRateSml.measure.updateExponentialMovingAverage(time.Now()) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 13.6K bytes - Click Count (0) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
/** * Circuit breaker states */ public enum State { CLOSED, // Normal operation OPEN, // Failing, requests blocked HALF_OPEN // Testing recovery } private final String name; private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.3K bytes - Click Count (0) -
internal/dsync/dsync_test.go
// non-profitable and allows to confirm that spinning does not do harm. // To achieve this we create excess of goroutines most of which do local work. // These goroutines yield during local work, so that switching from // a blocked goroutine to other goroutines is profitable. // As a matter of fact, this benchmark still triggers some spinning in the mutex. m := NewDRWMutex(ds, "") var acc0, acc1 uint64 b.SetParallelism(4)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 10.8K bytes - Click Count (0) -
internal/lock/lock_windows.go
} err := lockFileEx(fd, flags, 1, 0, &syscall.Overlapped{}) if err == nil || err == errLockViolation { return nil } if err.Error() == "The process cannot access the file because another process has locked a portion of the file." { return ErrAlreadyLocked } return err } func lockFileEx(h syscall.Handle, flags, locklow, lockhigh uint32, ol *syscall.Overlapped) (err error) { reserved := uint32(0)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.9K bytes - Click Count (0) -
cmd/background-newdisks-heal-ops.go
return nil } if !errors.Is(err, errUnformattedDisk) { return err } } // Prevent parallel erasure set healing locker := z.NewNSLock(minioMetaBucket, fmt.Sprintf("new-drive-healing/%d/%d", poolIdx, setIdx)) lkctx, err := locker.GetLock(ctx, newDiskHealingTimeout) if err != nil { return fmt.Errorf("Healing of drive '%v' on %s pool, belonging to %s erasure set already in progress: %w",
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 16.5K bytes - Click Count (0) -
cmd/metacache-set.go
readers := make([]*metacacheReader, len(disks)) defer func() { for _, r := range readers { r.Close() } }() for i := range disks { r, w := io.Pipe() // Make sure we close the pipe so blocked writes doesn't stay around. defer r.CloseWithError(context.Canceled) readers[i] = newMetacacheReader(r) d := disks[i] // Send request to each disk. go func() { var werr error
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 30.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; @ExtendWith(MockitoExtension.class) class Smb2LogoffResponseTest { // Helper to create an instance with a mocked Configuration private Smb2LogoffResponse newResponse() { Configuration cfg = Mockito.mock(Configuration.class); return new Smb2LogoffResponse(cfg); } @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.7K bytes - Click Count (0)