Giter Site home page Giter Site logo

Comments (5)

dpc avatar dpc commented on September 22, 2024

Right. The first mioco thread should be the current one.

from mioco.pre-0.9.

dpc avatar dpc commented on September 22, 2024

Is this really a big issue for you? I looked at the code, and the biggest reason to do this the way it is currently is simplicity.

from mioco.pre-0.9.

4xrsJCr9 avatar 4xrsJCr9 commented on September 22, 2024

It isn't a big issue. My primary concern was related to the less than ideal interaction between threads and signal handlers, but that can be worked around.

Thanks for looking into it.

from mioco.pre-0.9.

Drakulix avatar Drakulix commented on September 22, 2024

Its actually an issue for me. Many ffi-libraries rely on having access to the main thread. With mioco this is impossible, as the main-thread will be always joining all worker threads, instead of becoming a worker thread itself.
I think it would be quite easily to implement by moving the thread creation out of spawn_thread into start (and probably renaming spawn_thread in the process to something like thread_loop). Then start could call that function itself at the end.
Would you interested in a pull request for this?

from mioco.pre-0.9.

dpc avatar dpc commented on September 22, 2024

Sure.

from mioco.pre-0.9.

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.