Skip to content
Snippets Groups Projects
Commit f3b6bfa6 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[+] Check if defined SO_INCOMING_CPU flag in the system

parent 1ad4ec5f
No related branches found
No related tags found
No related merge requests found
Pipeline #6896 passed with stage
in 13 seconds
......@@ -2,7 +2,7 @@ project(cellframe-sdk C)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_C_STANDARD 11)
set(CELLFRAME_SDK_NATIVE_VERSION "2.6-97")
set(CELLFRAME_SDK_NATIVE_VERSION "2.6-98")
add_definitions ("-DCELLFRAME_SDK_VERSION=\"${CELLFRAME_SDK_NATIVE_VERSION}\"")
set(DAPSDK_MODULES "")
......
......@@ -701,8 +701,10 @@ static void s_queue_add_es_callback( dap_events_socket_t * a_es, void * a_arg)
case DESCRIPTOR_TYPE_SOCKET_LISTENING:{
#ifdef DAP_OS_UNIX
#if defined (SO_INCOMING_CPU)
int l_cpu = l_worker->id;
setsockopt(l_es_new->socket , SOL_SOCKET, SO_INCOMING_CPU, &l_cpu, sizeof(l_cpu));
#endif
#endif
} break;
default: {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment