- Timestamp:
- Jul 27, 2008, 11:35:02 AM (16 years ago)
- Location:
- release/1.2/source/level-1
- Files:
-
- 4 edited
-
l1-aprims.lisp (modified) (1 diff)
-
l1-io.lisp (modified) (4 diffs)
-
l1-lisp-threads.lisp (modified) (1 diff)
-
l1-processes.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
release/1.2/source/level-1/l1-aprims.lisp
r8775 r10220 50 50 (def-standard-initial-binding *lock-conses* (make-list 20))) 51 51 (def-standard-initial-binding *whostate* "Reset") 52 (setq *whostate* " Active")52 (setq *whostate* "Reset") 53 53 (def-standard-initial-binding *error-print-length* 20) 54 54 (def-standard-initial-binding *error-print-level* 8) -
release/1.2/source/level-1/l1-io.lisp
r8530 r10220 986 986 987 987 988 (defvar *pname-buffer* (%cons-pool "12345678901234567890"))989 990 988 (defun write-pname (name case stream) 991 989 (declare (type simple-string name) (stream stream) … … 1023 1021 (return nil)) 1024 1022 (setq sofar c-case)))))))) 1025 (declare (dynamic-extent slashify?single-case-p))1023 (declare (dynamic-extent #'slashify? #'single-case-p)) 1026 1024 (block alice 1027 1025 (let ((len (length name)) … … 1065 1063 (let* ((outbuf-len (+ len len)) 1066 1064 (outbuf-ptr -1) 1067 (pool *pname-buffer*) 1068 (outbuf (pool.data pool))) 1069 (declare (fixnum outbuf-ptr) (simple-string outbuf)) 1070 (setf (pool.data pool) nil) ; grab it. 1071 (unless (and outbuf (>= (length outbuf) outbuf-len)) 1072 (setq outbuf (make-array outbuf-len :element-type 'character))) 1065 (outbuf (make-string outbuf-len))) 1066 (declare (fixnum outbuf-ptr outbuf-len) 1067 (dynamic-extent outbuf) 1068 (simple-string outbuf)) 1073 1069 (dotimes (pos (the fixnum len)) 1074 1070 (declare (type fixnum pos)) … … 1085 1081 (setf (schar outbuf (incf outbuf-ptr)) #\\)) 1086 1082 (setf (schar outbuf (incf outbuf-ptr)) char))) 1087 (write-string outbuf stream :start 0 :end (1+ outbuf-ptr)) 1088 (setf (pool.data pool) outbuf))))))) 1083 (write-string outbuf stream :start 0 :end (1+ outbuf-ptr)))))))) 1089 1084 1090 1085 #| -
release/1.2/source/level-1/l1-lisp-threads.lisp
r8579 r10220 395 395 (cons function args))) 396 396 397 (defun thread-enable (thread termination-semaphore allocation-quantum &optional (timeout most-positive-fixnum))397 (defun thread-enable (thread termination-semaphore allocation-quantum &optional (timeout (* 60 60 24))) 398 398 (let* ((tcr (or (lisp-thread.tcr thread) (new-tcr-for-thread thread)))) 399 399 (with-macptrs (s) -
release/1.2/source/level-1/l1-processes.lisp
r8130 r10220 217 217 (if (process-exhausted-p p) 218 218 "Exhausted" 219 (symbol-value-in-process '*whostate* p))) 219 (let* ((loc nil)) 220 (if (eq p *current-process*) 221 (setq loc (%tcr-binding-location (%current-tcr) '*whostate*)) 222 (let* ((tcr (process-tcr p))) 223 (without-interrupts 224 (unwind-protect 225 (progn 226 (%suspend-tcr tcr) 227 (setq loc (%tcr-binding-location tcr '*whostate*))) 228 (%resume-tcr tcr))))) 229 (if loc 230 (%fixnum-ref loc) 231 (if (eq p *initial-process*) 232 "Active" 233 "Reset"))))) 220 234 221 235 (defun (setf process-whostate) (new p) … … 252 266 253 267 254 (defun process-enable (p &optional (wait 1))268 (defun process-enable (p &optional (wait (* 60 60 24) wait-p)) 255 269 "Begin executing the initial function of a specified process." 256 270 (setq p (require-type p 'process)) 257 271 (not-in-current-process p 'process-enable) 272 (when wait-p 273 (check-type wait (unsigned-byte 32))) 258 274 (unless (car (process-initial-form p)) 259 275 (error "Process ~s has not been preset. Use PROCESS-PRESET to preset the process." p))
Note:
See TracChangeset
for help on using the changeset viewer.
