Lines Matching defs:Thread
30 type Thread struct { struct
32 Name string
35 stack []*frame
40 Print func(thread *Thread, msg string)
48 Load func(thread *Thread, module string) (StringDict, error)
51 steps, maxSteps uint64
54 cancelReason *string
58 locals map[string]interface{}
61 proftime time.Duration
70 func (thread *Thread) ExecutionSteps() uint64 {
78 func (thread *Thread) SetMaxExecutionSteps(max uint64) {
91 func (thread *Thread) Cancel(reason string) {
98 func (thread *Thread) SetLocal(key string, value interface{}) {
106 func (thread *Thread) Local(key string) interface{} {
115 func (thread *Thread) CallFrame(depth int) CallFrame {
119 func (thread *Thread) frameAt(depth int) *frame {
124 func (thread *Thread) CallStack() CallStack {
133 func (thread *Thread) CallStackDepth() int { return len(thread.stack) }
251 func (thread *Thread) evalError(err error) *EvalError {
332 func ExecFile(thread *Thread, filename string, src interface{}, predeclared StringDict) (StringDict…
426 func ExecREPLChunk(f *syntax.File, thread *Thread, globals StringDict) error {
512 func Eval(thread *Thread, filename string, src interface{}, env StringDict) (Value, error) {
536 func EvalExpr(thread *Thread, expr syntax.Expr, env StringDict) (Value, error) {
1188 func Call(thread *Thread, fn Value, args Tuple, kwargs []Tuple) (Value, error) {