Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 135 for switch3 (0.38 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/BuildLogicChangeFixture.groovy

                }
            """
            writeBuildLogicPlugin()
            writeGreetTask "GreetTask", ORIGINAL_GREETING
            switch (kind) {
                case Kind.CHANGE_RESOURCE:
                    writeResource ""
                    break
            }
        }
    
        void applyChange() {
            switch (kind) {
                case Kind.CHANGE_SOURCE:
                    writeGreetTask "GreetTask", CHANGED_GREETING
                    break
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/os/exec_unix.go

    	"time"
    )
    
    const (
    	// Special values for Process.Pid.
    	pidUnset    = 0
    	pidReleased = -1
    )
    
    func (p *Process) wait() (ps *ProcessState, err error) {
    	// Which type of Process do we have?
    	switch p.mode {
    	case modeHandle:
    		// pidfd
    		return p.pidfdWait()
    	case modePID:
    		// Regular PID
    		return p.pidWait()
    	default:
    		panic("unreachable")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/os/exec_windows.go

    func (p *Process) wait() (ps *ProcessState, err error) {
    	handle, status := p.handleTransientAcquire()
    	switch status {
    	case statusDone:
    		return nil, ErrProcessDone
    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    	defer p.handleTransientRelease()
    
    	s, e := syscall.WaitForSingleObject(syscall.Handle(handle), syscall.INFINITE)
    	switch s {
    	case syscall.WAIT_OBJECT_0:
    		break
    	case syscall.WAIT_FAILED:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. association.go

    			return association.Error
    		}
    
    		// set old associations's foreign key to null
    		switch rel.Type {
    		case schema.BelongsTo:
    			if len(values) == 0 {
    				updateMap := map[string]interface{}{}
    				switch reflectValue.Kind() {
    				case reflect.Slice, reflect.Array:
    					for i := 0; i < reflectValue.Len(); i++ {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/instrumentation-agent-services/src/main/java/org/gradle/internal/instrumentation/agent/AgentUtils.java

     */
    public final class AgentUtils {
        private AgentUtils() {}
    
        public static final String AGENT_MODULE_NAME = "gradle-instrumentation-agent";
    
        /**
         * Checks if the command-line argument looks like JVM switch that applies gradle instrumentation agent.
         * If the returned value is {@code true} then the argument is definitely a java agent application.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. callbacks/preload.go

    			return err
    		}
    	}
    
    	fieldValues := make([]interface{}, len(relForeignFields))
    
    	// clean up old values before preloading
    	switch reflectValue.Kind() {
    	case reflect.Struct:
    		switch rel.Type {
    		case schema.HasMany, schema.Many2Many:
    			tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue, reflect.MakeSlice(rel.Field.IndirectFieldType, 0, 10).Interface()))
    		default:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/unify.go

    	// Ensure that if we have at least one type parameter, it is in x
    	// (the earlier swap checks for _recorded_ type parameters only).
    	// This ensures that the switch switches on the type parameter.
    	//
    	// TODO(gri) Factor out type parameter handling from the switch.
    	if isTypeParam(y) {
    		if traceInference {
    			u.tracef("%s ≡ %s\t// swap", y, x)
    		}
    		x, y = y, x
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. cmd/storage-datatypes_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 130.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ScriptChangeFixture.groovy

                def buildArguments = scriptType == ScriptType.INIT
                    ? ['help', '-I', defaultScriptFile.absolutePath]
                    : ['help']
                switch (scriptDiscovery) {
                    case ScriptDiscovery.DEFAULT:
                        return new ScriptChangeFixture(rootProjectDir, defaultScriptFile, buildArguments)
                    case ScriptDiscovery.APPLIED:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

            switch (injectionStyle) {
                case InjectionStyle.PLUGIN:
                    return "apply type: $pluginType"
                case InjectionStyle.NEW_INSTANCE:
                    def targetObject = target.targetType.toLowerCase()
                    switch (target) {
                        case ScriptTarget.PROJECT:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top