change queues, run exec speed optimizations
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "context.h"
|
||||
#include "ptQueue/inc/spsc.h"
|
||||
|
||||
void broadcastClients(EmulContext* emulContext, uint8_t* msg, size_t msgLen);
|
||||
void dispatchOutgoingMessage(OutgoingBuffers* outBufs, ws_cli_conn_t clientIdx, uint8_t* msg, size_t msgLen);
|
||||
void dispatchOutgoingMessage(queue_spsc_t* outMsgQueue, ws_cli_conn_t clientIdx, uint8_t* msg, size_t msgLen);
|
||||
|
||||
#endif
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "proto/dial.h"
|
||||
#include "stream_reader.h"
|
||||
|
||||
void unregisterClientStream(EmulContext* emulContext, ClientContext* ctx, uint32_t regId);
|
||||
// static void unregisterClientStream(EmulContext* emulContext, ClientContext* ctx, uint32_t regId);
|
||||
void unregisterClientStreams(EmulContext* emulContext, ClientContext* ctx);
|
||||
|
||||
void handleIncomingStreamMessage(
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef __PROTO_MSG_H__
|
||||
#define __PROTO_MSG_H__
|
||||
|
||||
#include "client.h"
|
||||
#include "wsServer/include/ws.h"
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
@@ -10,6 +11,7 @@
|
||||
typedef struct {
|
||||
uint8_t* data;
|
||||
size_t size;
|
||||
ClientContext* ctx;
|
||||
} FbMessage;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user