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