Attached is a proposed patch to complete moving the various THREADS related stuff into the new package.
This patch removes the Gates implementation, as the new SYNCHRONIZED-ON and OBJECT-NOTIFY primitives provide more appropriate (i.e. more JVM specific) abstractions.
If Tobias and Erik could check that this patch is what they want to have happen, I'll commit it.
Mark Evenson writes:
If Tobias and Erik could check that this patch is what they want to have happen, I'll commit it.
Looks good. The only question is where the MAILBOX related stuff should reside in, in EXT or THREADS?
Next steps:
* rename THREADS:THREAD-LOCK just to THREADS:LOCK.
* given SYNCHRONIZED-ON, implement Mailbox in Lisp.
-T.
[svn 12053][1] removes the Gate implementation, and moves more related symbols in THREADS.
[1]: http://trac.common-lisp.net/armedbear/changeset/12053
Move additional symbols into THREADS package.
The symbols
THREADP THREAD-UNLOCK THREAD-LOCK THREAD-NAME THREAD-ALIVE-P CURRENT-THREAD DESTROY-THREAD INTERRUPT-THREAD WITH-THREAD-LOCK MAKE-THREAD-LOCK MAKE-THREAD INTERRUPT-THREAD MAPCAR-THREADS GET-MUTEX MAKE-MUTEX WITH-MUTEX RELEASE-MUTEX
have been moved from EXTENSIONS into THREADS.
These primitives are still part of the EXTENSIONS package but are now
armedbear-devel@common-lisp.net