Changeset 3383
- Timestamp:
- 06/30/08 12:47:55 (6 months ago)
- Files:
-
- trunk/bknr/datastore/src/data/object.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bknr/datastore/src/data/object.lisp
r3144 r3383 565 565 collect value)) 566 566 567 ;;; In order to avoid concurrency problems, we lock creation of568 ;;; objects early. Otherwise, we may run into the situation that an569 ;;; object id is used for two objects.570 571 (defvar *make-object-lock* (mp-make-lock))572 573 567 ;;; create object transaction, should not be called from user code, as 574 568 ;;; we have to give it a unique id in the initargs. After the object … … 592 586 593 587 (defun make-object (class-name &rest initargs) 594 "Make a persistent object of class named CLASS-NAME. Calls MAKE-INSTANCE with INITARGS." 595 ( mp-with-recursive-lock-held (*make-object-lock*)588 "Make a persistent object of class named CLASS-NAME. Calls MAKE-INSTANCE with INITARGS." 589 (with-store-guard () 596 590 (execute (make-instance 'transaction 597 591 :function-symbol 'tx-make-object
