Skip to content

Missing timeout parameter in C# binding for wait_for_consumers() #365

@albertkolberg

Description

@albertkolberg

I believe the timeout parameter is missing in the following binding:

[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
public static extern int lsl_wait_for_consumers(IntPtr obj);
/**
* Wait until some consumer shows up (without wasting resources).
* @return True if the wait was successful, false if the timeout expired.
*/
public bool wait_for_consumers(double timeout) { return dll.lsl_wait_for_consumers(obj)>0; }

The Api exposes:

/**
* Wait until some consumer shows up (without wasting resources).
* @return True if the wait was successful, false if the timeout expired.
*/
extern LIBLSL_C_API int32_t lsl_wait_for_consumers(lsl_outlet out, double timeout);

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