thread & io: code clean-ups
Remove unused `require`s and fix some indentation.
This commit is contained in:
parent
82b5ec8d18
commit
dffcbc1cb2
|
@ -433,14 +433,14 @@
|
||||||
(or stderr-logging-arg
|
(or stderr-logging-arg
|
||||||
(let ([spec (getenv "PLTSTDERR")])
|
(let ([spec (getenv "PLTSTDERR")])
|
||||||
(if spec
|
(if spec
|
||||||
(parse-logging-spec spec "in PLTSTDERR environment variable" #f)
|
(parse-logging-spec "stderr" spec "in PLTSTDERR environment variable" #f)
|
||||||
'(error)))))
|
'(error)))))
|
||||||
|
|
||||||
(define stdout-logging
|
(define stdout-logging
|
||||||
(or stdout-logging-arg
|
(or stdout-logging-arg
|
||||||
(let ([spec (getenv "PLTSTDOUT")])
|
(let ([spec (getenv "PLTSTDOUT")])
|
||||||
(if spec
|
(if spec
|
||||||
(parse-logging-spec spec "in PLTSTDOUT environment variable" #f)
|
(parse-logging-spec "stdout" spec "in PLTSTDOUT environment variable" #f)
|
||||||
'()))))
|
'()))))
|
||||||
|
|
||||||
(when (getenv "PLT_STATS_ON_BREAK")
|
(when (getenv "PLT_STATS_ON_BREAK")
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require "../common/check.rkt"
|
(require "../common/check.rkt"
|
||||||
"../host/thread.rkt"
|
|
||||||
"parameter.rkt"
|
"parameter.rkt"
|
||||||
"read-and-peek.rkt"
|
"read-and-peek.rkt"
|
||||||
"input-port.rkt"
|
"input-port.rkt"
|
||||||
"count.rkt"
|
|
||||||
"progress-evt.rkt"
|
"progress-evt.rkt"
|
||||||
"flush-output.rkt")
|
"flush-output.rkt")
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,9 @@
|
||||||
(require "../common/check.rkt"
|
(require "../common/check.rkt"
|
||||||
"../host/thread.rkt"
|
"../host/thread.rkt"
|
||||||
"input-port.rkt"
|
"input-port.rkt"
|
||||||
"output-port.rkt"
|
|
||||||
"custom-port.rkt"
|
"custom-port.rkt"
|
||||||
"pipe.rkt"
|
"pipe.rkt"
|
||||||
"peek-via-read-port.rkt"
|
"peek-via-read-port.rkt")
|
||||||
"buffer-mode.rkt")
|
|
||||||
|
|
||||||
(provide make-input-port)
|
(provide make-input-port)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
"../host/thread.rkt"
|
"../host/thread.rkt"
|
||||||
"parameter.rkt"
|
"parameter.rkt"
|
||||||
"read-and-peek.rkt"
|
"read-and-peek.rkt"
|
||||||
"port.rkt"
|
|
||||||
"input-port.rkt"
|
"input-port.rkt"
|
||||||
(submod "bytes-input.rkt" internal)
|
(submod "bytes-input.rkt" internal)
|
||||||
"../string/utf-8-decode.rkt"
|
"../string/utf-8-decode.rkt"
|
||||||
|
|
|
@ -209,6 +209,7 @@
|
||||||
(define (set-sync-on-channel! sync)
|
(define (set-sync-on-channel! sync)
|
||||||
(set! sync-on-channel sync))
|
(set! sync-on-channel sync))
|
||||||
|
|
||||||
;;
|
;; ----------------------------------------
|
||||||
|
|
||||||
(define-values (impersonator-prop:channel-put channel-put-impersonator? channel-put-impersonator-ref)
|
(define-values (impersonator-prop:channel-put channel-put-impersonator? channel-put-impersonator-ref)
|
||||||
(make-impersonator-property 'channel-put-impersonator))
|
(make-impersonator-property 'channel-put-impersonator))
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require racket/unsafe/ops
|
(require "atomic.rkt")
|
||||||
"atomic.rkt")
|
|
||||||
|
|
||||||
(provide prop:evt
|
(provide prop:evt
|
||||||
evt?
|
evt?
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
(struct plumber (callbacks ; hash table of handles -> callbacks
|
(struct plumber (callbacks ; hash table of handles -> callbacks
|
||||||
weak-callbacks) ; same, but weak references
|
weak-callbacks) ; same, but weak references
|
||||||
#:property prop:authentic #t)
|
#:authentic)
|
||||||
|
|
||||||
(define (make-plumber)
|
(define (make-plumber)
|
||||||
(plumber (make-hasheq)
|
(plumber (make-hasheq)
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
(submod "channel.rkt" for-sync)
|
(submod "channel.rkt" for-sync)
|
||||||
"thread.rkt"
|
"thread.rkt"
|
||||||
(only-in (submod "thread.rkt" scheduling)
|
(only-in (submod "thread.rkt" scheduling)
|
||||||
current-break-enabled-cell
|
|
||||||
thread-descheduled?)
|
thread-descheduled?)
|
||||||
"schedule-info.rkt")
|
"schedule-info.rkt")
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require "evt.rkt"
|
(require "evt.rkt"
|
||||||
"semaphore.rkt"
|
"semaphore.rkt")
|
||||||
"internal-error.rkt")
|
|
||||||
|
|
||||||
(provide (rename-out [get-system-idle-evt system-idle-evt])
|
(provide (rename-out [get-system-idle-evt system-idle-evt])
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require "engine.rkt"
|
(require "check.rkt"
|
||||||
"check.rkt"
|
|
||||||
"internal-error.rkt"
|
"internal-error.rkt"
|
||||||
"atomic.rkt")
|
"atomic.rkt")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user