Coder Social home page Coder Social logo

JOIN-THREAD-ERROR about log4cl HOT 3 CLOSED

7max avatar 7max commented on July 21, 2024 1
JOIN-THREAD-ERROR

from log4cl.

Comments (3)

knobo avatar knobo commented on July 21, 2024

I checked out some git commits

e03418f
With this one I don't get any error message

cc21b0c
With this one I get #<SB-THREAD:JOIN-THREAD-ERROR {1005457DC3}>

I have tried this on sbcl-1.2.8 up til sbcl-1.3.5 (not all of them, though)

The code

(ql:quickload "log4cl")
(log4cl:start-hierarchy-watcher-thread)
(log4cl::stop-hierarchy-watcher-thread)   

from log4cl.

knobo avatar knobo commented on July 21, 2024

Maybe in start-hierarchy-watcher-thread

(sleep *hierarchy-watcher-heartbeat*)

could be exchanged with something like:

(bt:with-lock-held (*lock*)
  (when (bt:condition-wait  *condition* *lock* :timeout *hierarchy-watcher-heartbeat*)
    (return-from start-hierarchy-watcher-thread)))

and in log4cl::stop-hierarchy-watcher-thread

bt::destroy-thread

could be exchanged with something like

(bt:condition-notify *condition*)

from log4cl.

knobo avatar knobo commented on July 21, 2024

Or, maybe we don't need any locking mechanism to send a stop-signal to the server. Just (setf stop-server t), and then (when stop-server (return-fom.....))?

from log4cl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.