[ENet-discuss] wake-up enet service

Jack Applegame japplegame at gmail.com
Thu Aug 2 11:50:36 PDT 2012


Unfortunately, It is not possible to call enet_host_send/flush/service 
functions from different threads.

02.08.2012 5:36, Lee Salzman wrote:
> Call enet_host_flush(). That will try to send out any queued packets 
> immediately.
>
> On 08/02/2012 09:58 AM, Jack Applegame wrote:
>> Hello!
>>
>> I use separate thread for calling enet_host_service() with 1 second 
>> timeout.
>> Is there a way to wake-up ENet from other thread, if It is necessary 
>> to send a packet immediately without waiting for timeout?
>> Setting timeout to zero isn't good way, because in this case service 
>> thread fully loads one processor core even if it is no network activity.
>>
>> Best regards
>> Jack Applegame
>> _______________________________________________
>> ENet-discuss mailing list
>> ENet-discuss at cubik.org
>> http://lists.cubik.org/mailman/listinfo/enet-discuss
>>
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss



More information about the ENet-discuss mailing list