Skip to content

Commit 78cae0d

Browse files
authored
Merge pull request #20 from labstreaminglayer/wait_for_consumer_fix
wait for consumer fix
2 parents 20fcaef + 30c151a commit 78cae0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LSL.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ protected override void DestroyLSLObject(IntPtr obj)
495495
* Wait until some consumer shows up (without wasting resources).
496496
* @return True if the wait was successful, false if the timeout expired.
497497
*/
498-
public bool wait_for_consumers(double timeout = LSL.FOREVER) { return dll.lsl_wait_for_consumers(obj) > 0; }
498+
public bool wait_for_consumers(double timeout = LSL.FOREVER) { return dll.lsl_wait_for_consumers(obj, timeout) > 0; }
499499

500500
/**
501501
* Retrieve the stream info provided by this outlet.
@@ -1023,7 +1023,7 @@ class dll
10231023
public static extern int lsl_have_consumers(IntPtr obj);
10241024

10251025
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
1026-
public static extern int lsl_wait_for_consumers(IntPtr obj);
1026+
public static extern int lsl_wait_for_consumers(IntPtr obj, double timeout);
10271027

10281028
[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
10291029
public static extern IntPtr lsl_get_info(IntPtr obj);

0 commit comments

Comments
 (0)