Skip to content

ThreadSafeFunction(napi_threadsafe_function) works badly with BlockingCall() #556

Closed
@o2genum

Description

@o2genum

When a ThreadSafeFunction instance is created from napi_threadsafe_function, its BlockingCall method doesn't work properly:

  • The passed callback is ignored, but still required by the method signature (the one supplied with napi_create_threadsafe_function is used)
  • The passed data pointer is incorrect for some reason. napi_call_threadsafe_function works fine.

I'm doing this because I want to napi_unref_threadsafe_function without using all the verbose C APIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions