Skip to content

lib: posix: fix couple of race conditions #10106

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

Merged
merged 1 commit into from
Sep 21, 2018

Conversation

nniranjhana
Copy link

@nniranjhana nniranjhana commented Sep 19, 2018

Added locks around thread state accesses in
pthread_create() to avoid race conditions.

Fixes #10093, #10095 and #10096.

Signed-off-by: Niranjhana N [email protected]

Added locks around thread state accesses in
pthread_create() to avoid race conditions.

Signed-off-by: Niranjhana N <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #10106 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10106      +/-   ##
==========================================
+ Coverage   52.48%   52.49%   +<.01%     
==========================================
  Files         213      213              
  Lines       26135    26139       +4     
  Branches     5633     5633              
==========================================
+ Hits        13718    13722       +4     
  Misses      10160    10160              
  Partials     2257     2257
Impacted Files Coverage Δ
lib/posix/pthread.c 70.23% <100%> (+0.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68249ce...6905ef2. Read the comment docs.

@nashif nashif merged commit 4462dfa into zephyrproject-rtos:master Sep 21, 2018
@nniranjhana nniranjhana deleted the fix_race_cond branch September 21, 2018 04:38
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.

3 participants