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

Remove non portable use of pthread_t #218

Merged
merged 4 commits into from
Jan 4, 2020
Merged

Remove non portable use of pthread_t #218

merged 4 commits into from
Jan 4, 2020

Conversation

nchong-at-aws
Copy link
Contributor

Issue #, if available: #217

Description of changes:

Use portable thread id comparison functions from proposed c common changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@nchong-at-aws
Copy link
Contributor Author

This PR depends on awslabs/aws-c-common#563

source/bsd/kqueue_event_loop.c Outdated Show resolved Hide resolved
source/bsd/kqueue_event_loop.c Show resolved Hide resolved
nchong-at-aws and others added 2 commits January 2, 2020 10:15
- Rename `aws_thread_id` to `aws_thread_id_t`
- Re-use `thread.thread_id` in destroy() to avoid pointer to stack var
source/linux/epoll_event_loop.c Outdated Show resolved Hide resolved
* Update doc for event loop destroy API function to note requirements for thread-safety

* (Hopefully) clearer thread var names and comments added to kqueue implementation

* Use separate aws_thread_id_t var for thread_joined_to
Copy link
Contributor Author

@nchong-at-aws nchong-at-aws left a comment

Choose a reason for hiding this comment

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

Should be resolved.

@nchong-at-aws nchong-at-aws dismissed danielsn’s stale review January 4, 2020 00:05

Changes requested addressed.

@JonathanHenson JonathanHenson merged commit 9276b72 into awslabs:master Jan 4, 2020
@JonathanHenson
Copy link
Contributor

Merging as an Admin because our CI jobs for github actions don't work with a forked PR, and our downstream builder checks "master" from s2n which is currently broken for gcc 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants