Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for go_functions (0.3 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/libgo7/sink.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "C"
    
    var sink []byte
    
    //export GoFunction7
    func GoFunction7() {
    	sink = make([]byte, 4096)
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 291 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/libgo8/a.go

    )
    
    var started int32
    
    // Start a goroutine that loops forever.
    func init() {
    	runtime.GOMAXPROCS(1)
    	go func() {
    		for {
    			atomic.StoreInt32(&started, 1)
    		}
    	}()
    }
    
    //export GoFunction8
    func GoFunction8() {
    	for atomic.LoadInt32(&started) == 0 {
    		runtime.Gosched()
    	}
    	os.Exit(0)
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 529 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/testdata/main8.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test preemption.
    
    #include <stdlib.h>
    
    #include "libgo8.h"
    
    int main() {
    	GoFunction8();
    
    	// That should have exited the program.
    	abort();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 306 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcarchive/testdata/main7.c

    // license that can be found in the LICENSE file.
    
    // Test that lots of calls don't deadlock.
    
    #include <stdio.h>
    
    #include "libgo7.h"
    
    int main() {
    	int i;
    
    	for (i = 0; i < 100000; i++) {
    		GoFunction7();
    	}
    	return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 332 bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.h

    class TFSavedModelAPI : public SavedModelAPI {
     public:
      Status GetFunction(const std::string& function_path,
                         ConcreteFunction** function) override;
    
      Status GetFunctions(
          int node_id,
          absl::flat_hash_map<std::string, ConcreteFunction*>* functions) override;
    
      Status GetSignatureDefFunction(const std::string& signature_def_key,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 21:44:45 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top