[Pkg-voip-commits] [janus] 180/282: Add Thread ID callback in lws_protocols[0] to help identifying caller of `lws_callback_on_writable` and as such speed up lws reactivity

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.

commit defa80e0c43d3f2bd1534db805701e0a5310b00f
Author: Jonathan Martin <homerunisgood at hotmail.com>
Date:   Sun Nov 12 21:16:26 2017 +0100

    Add Thread ID callback in lws_protocols[0] to help identifying caller of `lws_callback_on_writable` and as such speed up lws reactivity
---
 transports/janus_websockets.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/transports/janus_websockets.c b/transports/janus_websockets.c
index c4aeb0e..100af3c 100644
--- a/transports/janus_websockets.c
+++ b/transports/janus_websockets.c
@@ -872,6 +872,8 @@ static int janus_websockets_callback_http(
 				return -1;
 			}
 			break;
+		case LWS_CALLBACK_GET_THREAD_ID:
+			return (uint64_t)pthread_self();
 		default:
 			break;
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list