Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeState (0.11 sec)

  1. src/internal/poll/fd_mutex_test.go

    					if !mu.RWLock(false) {
    						t.Error("broken")
    						return
    					}
    					// Ensure that it provides mutual exclusion for writers.
    					if writeState[0] != writeState[1] {
    						t.Error("broken")
    						return
    					}
    					writeState[0]++
    					writeState[1]++
    					if mu.RWUnlock(false) {
    						t.Error("broken")
    						return
    					}
    				}
    			}
    		}()
    	}
    	for p := 0; p < P; p++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockFileAccess.java

            LockState newState = lockState.completeUpdate();
            lockStateAccess.writeState(lockFileAccess, newState);
            return newState;
        }
    
        public LockState markDirty(LockState lockState) throws IOException {
            LockState newState = lockState.beforeUpdate();
            lockStateAccess.writeState(lockFileAccess, newState);
            return newState;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockStateAccess.java

                LockState state = protocol.createInitialState();
                writeState(lockFileAccess, state);
                return state;
            } else {
                return readState(lockFileAccess);
            }
        }
    
        public void writeState(RandomAccessFile lockFileAccess, LockState lockState) throws IOException {
            ByteArrayOutputStream outstr = new ByteArrayOutputStream();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

                Class<?> stateClass = fromClassName(stateClassName);
                useJavaSerialization(stateClass);
                return build(stateClass).read(decoder);
            }
        }
    
        private void writeState(Encoder encoder, Object state) throws Exception {
            if (state == null) {
                encoder.writeByte(NULL_TYPE);
            } else if (state instanceof Isolatable) {
                encoder.writeByte(ISOLATABLE_TYPE);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top