Giter VIP home page Giter VIP logo

Comments (5)

lbeuster avatar lbeuster commented on July 17, 2024

BTW: It's a great idea to remove the native code. It crashes the VM on ARM and Mac from time to time. ;)

from dbus-java.

hypfvieh avatar hypfvieh commented on July 17, 2024

I've implemented your suggestions.
The check for newcount vs. THREADCOUNT is nonsense ... It would always do nothing when the default thread count is used.

I changed it so it compares the new value vs. the max thread count of the current ExecutorService.

from dbus-java.

lbeuster avatar lbeuster commented on July 17, 2024

Thanks 👍

from dbus-java.

lbeuster avatar lbeuster commented on July 17, 2024

Unfortunately this fix did not solve the issue because the methods of the ExecutorService itself are of course not protected. I created a pull request (#60) that uses read/write locking on the thread pool.

With the new fix I did not have the problem anymore.

from dbus-java.

Emill avatar Emill commented on July 17, 2024

It would be nice to be able to set the thread pool count before connecting. Now we have to get a default-sized thread pool and once the connection is created it can be resized to 1.

Having the thread pool of size 1 is the only way, as far as I know, to make sure the signals are delivered in the correct order, which might be important for some applications.

from dbus-java.

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.