Skip to content

Add detection of sleeping client procs#252

Merged
spookydonut merged 3 commits intoSpaceManiac:masterfrom
spookydonut:clientsleepers
Mar 11, 2021
Merged

Add detection of sleeping client procs#252
spookydonut merged 3 commits intoSpaceManiac:masterfrom
spookydonut:clientsleepers

Conversation

@spookydonut
Copy link
Copy Markdown
Collaborator

@spookydonut spookydonut commented Mar 10, 2021

MeasureText() and SoundQuery() technically sleep/block.

Fixes #236

@spookydonut spookydonut merged commit 42163b5 into SpaceManiac:master Mar 11, 2021
}

fn check_type_sleepers(&mut self, ty: TypeRef<'o>, location: Location, unscoped_name: &Ident) {
println!("{}, {}", ty, unscoped_name);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Garbage on stdout will kill the langserver. You can use eprintln!() to avoid this problem (or delete this line since it's just debugging junk)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ooops

j-awn pushed a commit to j-awn/SpacemanDMM that referenced this pull request Apr 1, 2021
* This should work but doesn't.

* bugfix maybe?

* working now
@SpaceManiac SpaceManiac added this to the suite v1.7 milestone May 19, 2021
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.

client.SoundQuery() should trigger sleep lint

2 participants