Changeset 13482 in project for release/4/synch/trunk/synch.scm
- Timestamp:
- 03/04/09 03:10:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release/4/synch/trunk/synch.scm
r13480 r13482 20 20 make-object/synch 21 21 object?/synch 22 set-object!/synch23 22 synch 24 23 synch-with … … 88 87 (pred ms)) ) ) ) ) ) 89 88 90 ;;; Synonyms91 92 (define-syntax set-object!/synch93 (syntax-rules ()94 [(_ ?mutex ?obj) (mutex-specific-set! ?mutex ?obj) ] ) )95 96 89 ;;; Protected 97 90 … … 258 251 (define-syntax record/synch 259 252 (lambda (form r c) 260 (##sys#check-syntax 'record/synch form '(_ variable_ . _))253 (##sys#check-syntax 'record/synch form '(_ symbol _ . _)) 261 254 (let ([$synch (r 'synch)]) 262 255 (let ([?sym (cadr form)] [?rec (caddr form)] [?body (cdddr form)]) … … 265 258 (define-syntax record-synch/lock 266 259 (lambda (form r c) 267 (##sys#check-syntax 'record-synch/lock form '(_ variable_ . _))260 (##sys#check-syntax 'record-synch/lock form '(_ symbol _ . _)) 268 261 (let ([$synch/lock (r 'synch/lock)]) 269 262 (let ([?sym (cadr form)] [?rec (caddr form)] [?body (cdddr form)]) … … 272 265 (define-syntax record-synch/unlock 273 266 (lambda (form r c) 274 (##sys#check-syntax 'record-synch/unlock form '(_ variable_ . _))267 (##sys#check-syntax 'record-synch/unlock form '(_ symbol _ . _)) 275 268 (let ([$synch/unlock (r 'synch/unlock)]) 276 269 (let ([?sym (cadr form)] [?rec (caddr form)] [?body (cdddr form)]) … … 418 411 (define-syntax %record/synch 419 412 (lambda (form r c) 420 (##sys#check-syntax '%record/synch form '(_ variable_ . _))413 (##sys#check-syntax '%record/synch form '(_ symbol _ . _)) 421 414 (let ([$%synch (r '%synch)]) 422 415 (let ([?sym (cadr form)] [?rec (caddr form)] [?body (cdddr form)]) … … 425 418 (define-syntax %record-synch/lock 426 419 (lambda (form r c) 427 (##sys#check-syntax '%record-synch/lock form '(_ variable_ . _))420 (##sys#check-syntax '%record-synch/lock form '(_ symbol _ . _)) 428 421 (let ([$%synch/lock (r '%synch/lock)]) 429 422 (let ([?sym (cadr form)] [?rec (caddr form)] [?body (cdddr form)]) … … 432 425 (define-syntax %record-synch/unlock 433 426 (lambda (form r c) 434 (##sys#check-syntax '%record-synch/unlock form '(_ variable_ . _))427 (##sys#check-syntax '%record-synch/unlock form '(_ symbol _ . _)) 435 428 (let ([$%synch/unlock (r '%synch/unlock)]) 436 429 (let ([?sym (cadr form)] [?rec (caddr form)] [?body (cdddr form)])
Note: See TracChangeset
for help on using the changeset viewer.