Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] -netthread fixes and implementation for linux #569

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

In-line
Copy link
Collaborator

@In-line In-line commented Jan 14, 2018

No description provided.

@In-line In-line changed the title Implement -netthread for linux [WIP] Implement -netthread for linux Jan 14, 2018
@In-line In-line force-pushed the NetThreadLinux branch 7 times, most recently from 1f35cf0 to 48be56d Compare January 15, 2018 13:36
@In-line In-line changed the title [WIP] Implement -netthread for linux -netthread fixes and implementation for linux Jan 15, 2018
@In-line In-line changed the title -netthread fixes and implementation for linux [WIP] -netthread fixes and implementation for linux Jan 16, 2018
@In-line
Copy link
Collaborator Author

In-line commented Jan 16, 2018

After several tests was confirmed that -netthread is not stable for now. Ping can increase 100+ at random time.

@In-line
Copy link
Collaborator Author

In-line commented Feb 1, 2018

It was tested by several people at least nothing bad was reported for the time going.

@In-line In-line changed the title [WIP] -netthread fixes and implementation for linux -netthread fixes and implementation for linux Feb 1, 2018
@theAsmodai
Copy link
Collaborator

theAsmodai commented Feb 8, 2018

please confirm is it ready and tested?

@In-line
Copy link
Collaborator Author

In-line commented Feb 13, 2018

@theAsmodai Yes, it it ready and was tested by serveral people.

@@ -1198,11 +1235,38 @@ void NET_StopThread()
{
if (net_thread_initialized)
{
#ifdef REHLDS_FIXES // Safe thread stopping.
NET_ThreadLock();
net_thread_terminated = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need lock here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theAsmodai what's the reason? x86?

@In-line
Copy link
Collaborator Author

In-line commented Feb 16, 2018

You can think about this as poor man's -pingboost 3

@theAsmodai
Copy link
Collaborator

I don't understand you.

@In-line In-line changed the title -netthread fixes and implementation for linux [WIP] -netthread fixes and implementation for linux Feb 16, 2018
@In-line
Copy link
Collaborator Author

In-line commented Feb 16, 2018

@theAsmodai Don't merge this for now. It seems that we need to place memory barriers. https://stackoverflow.com/questions/286629/what-is-a-memory-fence

@theAsmodai
Copy link
Collaborator

Here it's not necessary.

@wopox1337 wopox1337 changed the title [WIP] -netthread fixes and implementation for linux [WIP] -netthread fixes and implementation for linux Oct 20, 2021
@wopox1337 wopox1337 marked this pull request as draft October 20, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants