-
-
Notifications
You must be signed in to change notification settings - Fork 849
core:thread get_name/set_name #5464
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
Open
peperronii
wants to merge
29
commits into
odin-lang:master
Choose a base branch
from
peperronii:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+261
−33
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0a3f730
Get/Set Thread names
peperronii b87b543
substitute 'do'
peperronii 6f3cc31
substitute sync.current_thread_id with posix.pthread_self for unix
peperronii 7265782
remove unnecessary spaces, fix t -> thread, added more description
peperronii 8bc1ffd
remove 'do'
peperronii c078300
fix proc and variable typos
peperronii 552b4b6
fix GetThreadDescription ^PCWSTR to PWSTR
peperronii d875d2d
added set_name in thread_other
peperronii 02111e7
no #optional_allocator_error
peperronii 08c2988
spacing
peperronii 05b7697
more spacing
peperronii 5ffba9b
use copy proc group instead of copy_from_string
peperronii 805c322
Update core/thread/thread_unix.odin
peperronii 9aa4afe
GetThreadDescription ^PWSTR
peperronii 8f81b87
changed [^]u8 to cstring for netbsd, added truncate_to_byte(name,0) o…
peperronii 228e275
use win32.wstring_to_utf8, default to temp_allocator, guarantees prop…
peperronii ea20383
Merge branch 'master' into master
peperronii 8d278ac
fix system:System.Framework pthread.odin
peperronii a357113
thread.create et al with name parameter
peperronii 3c9d05a
fix tid/handle bug on macos/win
peperronii 2f770ff
check for Haiku before calling _set_name
peperronii c164332
Apply suggestions from code review
peperronii 155c03a
Merge branch 'odin-lang:master' into master
peperronii 8884ad0
added name argument description
peperronii 5ab3c17
fixed windows api and free GetThreadName's allocation
peperronii e4cc58d
thread.name = name in unix
peperronii 704a917
re-added Haiku os _set_name guard
peperronii ed75ab4
Change windows Thread_Description_Length to 128
peperronii f873231
Update thread name/description truncation limits
peperronii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I’m not sure about this API call. per documentation it might be ^PWSTR but that doesn’t make sense cause it’s a pointer to a pointer.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a pointer to a pointer because it's writing the buffer's pointer at the one we give it. It doesn't copy the whole buffer back to you. It just returns a pointer to it.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to still manually allocate a buffer for the entire string or we’ll be fine just using the pointer?
edit:I forgot that we’d have to allocate for the returned string anyway, but I’m still curious how it will manage the buffer after the call.