prelude: :gerbil/compiler/ssxi
package: gerbil/runtime

(begin
  (declare-type
   spawn
   (@lambda (1)
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             (procedure::t . t::t)
             unchecked:
             __spawn
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __spawn
   (@lambda (1)
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   spawn/name
   (@lambda (2)
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             (t::t procedure::t . t::t)
             unchecked:
             __spawn/name
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __spawn/name
   (@lambda (2)
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   spawn/group
   (@lambda (2)
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             (t::t procedure::t . t::t)
             unchecked:
             __spawn/group
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __spawn/group
   (@lambda (2)
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   spawn-actor
   (@lambda 4
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   spawn-thread__%
   (@lambda 3
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   spawn-thread__0
   (@lambda 1
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   spawn-thread__1
   (@lambda 2
            #f
            signature:
            (return:
             thread::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   spawn-thread
   (@case-lambda
    (1
     spawn-thread__0
     signature:
     (return:
      thread::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))
    (2
     spawn-thread__1
     signature:
     (return:
      thread::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))
    (3
     spawn-thread__%
     signature:
     (return:
      thread::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))))
  (declare-type
   thread-local-ref__%
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   thread-local-ref__0
   (@lambda 1
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   thread-local-ref
   (@case-lambda
    (1
     thread-local-ref__0
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))
    (2
     thread-local-ref__%
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))))
  (declare-type
   thread-local-get
   (@lambda 1
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   thread-local-set!
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   thread-local-delete!
   (@lambda 1
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   thread-local-table
   (@lambda 0
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __primordial-thread-locals
   (optimizer-resolve-class
    '(typedecl __primordial-thread-locals)
    'HashTable::t))
  (declare-type
   __thread-locals
   (optimizer-resolve-class '(typedecl __thread-locals) 'HashTable::t))
  (declare-type
   __thread-locals-mutex
   (optimizer-resolve-class '(typedecl __thread-locals-mutex) 'mutex::t))
  (declare-type
   __unhandled-actor-exception-hook
   (optimizer-resolve-class
    '(typedecl __unhandled-actor-exception-hook)
    't::t))
  (declare-type
   unhandled-actor-exception-hook
   (@lambda 0
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   unhandled-actor-exception-hook-set!
   (@lambda 1
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             (#f)
             unchecked:
             __unhandled-actor-exception-hook-set!
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __unhandled-actor-exception-hook-set!
   (@lambda 1
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   current-thread-group
   (@lambda 0
            #f
            signature:
            (return:
             thread-group::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   with-lock
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             (mutex::t procedure::t)
             unchecked:
             __with-lock
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __with-lock
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   with-dynamic-lock
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             (mutex::t procedure::t)
             unchecked:
             __with-dynamic-lock
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __with-dynamic-lock
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   with-exception-stack-trace__%
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             (procedure::t port::t)
             unchecked:
             __with-exception-stack-trace
             origin:
             gerbil/runtime/thread)))
  (declare-type
   with-exception-stack-trace__0
   (@lambda 1
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   with-exception-stack-trace
   (@case-lambda
    (1
     with-exception-stack-trace__0
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))
    (2
     with-exception-stack-trace__%
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))))
  (declare-type
   __with-exception-stack-trace__%
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __with-exception-stack-trace__0
   (@lambda 1
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   __with-exception-stack-trace
   (@case-lambda
    (1
     __with-exception-stack-trace__0
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))
    (2
     __with-exception-stack-trace__%
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))))
  (declare-type
   dump-stack-trace!__%
   (@lambda 3
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   dump-stack-trace!__0
   (@lambda 2
            #f
            signature:
            (return:
             t::t
             effect:
             #f
             arguments:
             #f
             unchecked:
             #f
             origin:
             gerbil/runtime/thread)))
  (declare-type
   dump-stack-trace!
   (@case-lambda
    (2
     dump-stack-trace!__0
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread))
    (3
     dump-stack-trace!__%
     signature:
     (return:
      t::t
      effect:
      #f
      arguments:
      #f
      unchecked:
      #f
      origin:
      gerbil/runtime/thread)))))
