You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How are you getting your events from the background process to the main thread? I have been having a hard time wrapping my head around this and it looks as though your doing just this.
The text was updated successfully, but these errors were encountered:
Sorry for not responding, I have been fairly busy lately.
As far as getting events over to the main thread, I've always just used a thread-safe message pump pattern for this.
A thread-safe queue lies at the core of this, so that your networking thread enqueues messages it receives onto this queue, and then your main thread at some interval dequeues all messages on this queue and processes them.
________________________________
From: KillaMaaki <[email protected]>
Sent: Wednesday, November 1, 2017 10:48:58 AM
To: KillaMaaki/Netcode.IO.NET
Cc: levonravel; Author
Subject: Re: [KillaMaaki/Netcode.IO.NET] Not sure how to get a hold of you (#10)
Sorry for not responding, I have been fairly busy lately.
As far as getting events over to the main thread, I've always just used a thread-safe message pump pattern for this.
A thread-safe queue lies at the core of this, so that your networking thread enqueues messages it receives onto this queue, and then your main thread at some interval dequeues all messages on this queue and processes them.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#10 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ALOAc1kX3vlV02yhky12S8Kia5iLCxNQks5syK8FgaJpZM4P8xZL>.
How are you getting your events from the background process to the main thread? I have been having a hard time wrapping my head around this and it looks as though your doing just this.
The text was updated successfully, but these errors were encountered: