diff --git a/collects/meta/props b/collects/meta/props index 44211f8ab0..ca737815ff 100755 --- a/collects/meta/props +++ b/collects/meta/props @@ -1821,8 +1821,8 @@ path/s is either such a string or a list of them. "collects/tests/racket/path.rktl" drdr:command-line #f "collects/tests/racket/pathlib.rktl" drdr:command-line (racket "-f" *) "collects/tests/racket/pconvert.rktl" drdr:command-line #f -"collects/tests/racket/place-channel.rktl" drdr:command-line #f -"collects/tests/racket/place.rktl" drdr:command-line #f +"collects/tests/racket/place-channel.rktl" responsible (tewk) drdr:command-line (racket "-f" *) +"collects/tests/racket/place.rktl" responsible (tewk) drdr:command-line (racket "-f" *) "collects/tests/racket/port.rktl" drdr:command-line #f "collects/tests/racket/portlib.rktl" drdr:command-line #f "collects/tests/racket/pretty.rktl" drdr:command-line (racket "-f" *) diff --git a/collects/racket/place.rkt b/collects/racket/place.rkt index 145df17342..9c91a03a67 100644 --- a/collects/racket/place.rkt +++ b/collects/racket/place.rkt @@ -39,6 +39,10 @@ ch)) (define (th-place mod funcname) + (unless (or (path-string? mod) (resolved-module-path? mod)) + (raise-type-error 'place "resolved-module-path? or path-string?" 0 mod funcname)) + (unless (symbol? funcname) + (raise-type-error 'place "symbol?" 1 mod funcname)) (define-values (pch cch) (th-place-channel)) (define th (thread (lambda () (with-continuation-mark @@ -50,7 +54,7 @@ (TH-place th pch)) (define (th-place-sleep n) (sleep n)) -(define (th-place-wait pl) (thread-wait (TH-place-th pl))) +(define (th-place-wait pl) (thread-wait (TH-place-th pl)) 0) (define (th-place-channel) (define-values (as ar) (make-th-async-channel)) (define-values (bs br) (make-th-async-channel))