]> git.eshelyaron.com Git - emacs.git/commit
Add thread-safe messages and thread-safe queues
authorGemini Lasswell <gazally@runbox.com>
Mon, 8 Oct 2018 19:35:00 +0000 (12:35 -0700)
committerGemini Lasswell <gazally@runbox.com>
Fri, 23 Nov 2018 20:32:23 +0000 (12:32 -0800)
commit632a12dac2b56212bdd92009ecdd31090bbf1f5f
treecf5fabfb7f3fd02984163ecc50f0457dd13d24c8
parent4dc73269561237d04280b0a212eee603f1e73c9f
Add thread-safe messages and thread-safe queues

* lisp/thread.el (thread--message): New cl-defstruct.
(thread-message-value, thread-message-send)
(thread-message-cancel, thread-message-wait): New functions.
(thread--queue): New cl-defstruct.
(thread-queue-empty-p, thread-queue-full-p)
(thread-queue-length, thread-queue-remove-all)
(thread-queue-put, thread-queue-get): New
functions.
lisp/thread.el