Code Monkey home page Code Monkey logo

Comments (10)

saghul avatar saghul commented on August 30, 2024 1

I took a quick look and I think I know what's happening:

Here is a suggestion:

Hope that helps!

from node-xpc-connection.

sandeepmistry avatar sandeepmistry commented on August 30, 2024

@vielmetti this might also be useful for getting a stack trace: https://github.com/ddopson/node-segfault-handler

from node-xpc-connection.

vielmetti avatar vielmetti commented on August 30, 2024

Thanks @saghul that is tremendously helpful.

from node-xpc-connection.

sandeepmistry avatar sandeepmistry commented on August 30, 2024

@saghul thanks for the explanation and suggestion!

Would you mind quickly reviewing 2f7734b before I merge into master?

from node-xpc-connection.

saghul avatar saghul commented on August 30, 2024

Looks good!
On Mar 31, 2015 2:52 AM, "Sandeep Mistry" [email protected] wrote:

@saghul https://github.com/saghul thanks for the explanation and
suggestion!

Would you mind quickly reviewing 2f7734b
2f7734b
before I merge into master?


Reply to this email directly or view it on GitHub
#7 (comment)
.

from node-xpc-connection.

vielmetti avatar vielmetti commented on August 30, 2024

Thanks! I'm putting together a test environment with this code, the new noble release, and support for the new Sensortag 2 - hope to exercise this soon in the same way that I did before.

from node-xpc-connection.

saghul avatar saghul commented on August 30, 2024

I just had another look. I initially thought about having a mutex + queue + async handle per XPC connection. Alternatively, you can also have a global async handle, which you initialize only once with uv_once: http://docs.libuv.org/en/v1.x/threading.html?highlight=uv_once#once-only-initialization

Not sure about the performance impact of either, but both should work.

from node-xpc-connection.

sandeepmistry avatar sandeepmistry commented on August 30, 2024

@saghul good suggestion, I've made changes to have one mutex + queue + async per XPC connection: 4be4f4a

Would you mind quickly reviewing again?

from node-xpc-connection.

sandeepmistry avatar sandeepmistry commented on August 30, 2024

@vielmetti I've published a new version (0.1.3) to npm, with the changes @saghul suggested.

@saghul thanks again for your help!

from node-xpc-connection.

saghul avatar saghul commented on August 30, 2024

Glad to help!
On Apr 5, 2015 15:27, "Sandeep Mistry" [email protected] wrote:

@vielmetti https://github.com/vielmetti I've published a new version
(0.1.3) to npm, with the changes @saghul https://github.com/saghul
suggested.

@saghul https://github.com/saghul thanks again for your help!


Reply to this email directly or view it on GitHub
#7 (comment)
.

from node-xpc-connection.

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.