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

Race condition in hwtimer_wait() #25

Closed
OlegHahm opened this issue Mar 13, 2013 · 1 comment
Closed

Race condition in hwtimer_wait() #25

OlegHahm opened this issue Mar 13, 2013 · 1 comment
Assignees
Labels
Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Comments

@OlegHahm
Copy link
Member

The function hwtimer_wait() internally calls hwtimer_set() to schedule a thread_wakeup() and then calls thread_sleep(), If an IRQ occurs before thread_sleep() gets called, this thread might never wake up again. One solution could be the usage of mutexes instead (as in former µkleos/FeuerWare code).

@ghost ghost assigned OlegHahm Aug 4, 2013
miri64 added a commit that referenced this issue Aug 11, 2013
fix for #25 by using mutexes for hwtimer_wait
@OlegHahm
Copy link
Member Author

Should be fixed by #105.

OlegHahm referenced this issue in OlegHahm/RIOT Nov 6, 2013
GPIO implementation was moved to RIOT/cpu/mc1322x
riot-ci pushed a commit to riot-ci/RIOT that referenced this issue May 24, 2019
$ git log --oneline dbf51f03c5058746b4c4b3d6fdcd3d0357c5da36..HEAD
ae4dd94 Merge pull request RIOT-OS#38 from noahp/noahp/check-url
b1371aa 🔗 update Check link
65bf740 Merge pull request RIOT-OS#35 from gdpinchina/master
61c6ef7 fix test for gga
4514f6d fix test for gga
113221d fix test for gga
35b00bc fix test in gga
9fcd245 remove indent
59c3e0a fix gga char alignment problem in test.c
79b964a modefy initialization for dgps_age
c4a5a01 modify dgps_age type
c01cbcf modify dgps_age type
cd27e72 Merge pull request RIOT-OS#29 from swilson/master
4d97109 Fix compiler warnings.
0456bbb Define timegm
04f1141 Add TI-RTOS compat header
8e4fc4e README.md: formatting fixes
0b02771 minmea.h: add Windows compatibility layer
ded4faf Merge pull request RIOT-OS#25 from asund/master
f50449e Fixup whitespace
80af9b4 * Arrange year interpretation in order of likeliness * Add unit tests
ef8bca7 clarity of century use in struct tm
486da2b Small fixes to minmea_gettime * Handle four digit years provided by ZDA in minmea_gettime * Assume GPS epoch to allow dates prior 2000 to be parsed
fjmolinas pushed a commit to fjmolinas/RIOT that referenced this issue Jun 5, 2019
$ git log --oneline dbf51f03c5058746b4c4b3d6fdcd3d0357c5da36..HEAD
ae4dd94 Merge pull request RIOT-OS#38 from noahp/noahp/check-url
b1371aa 🔗 update Check link
65bf740 Merge pull request RIOT-OS#35 from gdpinchina/master
61c6ef7 fix test for gga
4514f6d fix test for gga
113221d fix test for gga
35b00bc fix test in gga
9fcd245 remove indent
59c3e0a fix gga char alignment problem in test.c
79b964a modefy initialization for dgps_age
c4a5a01 modify dgps_age type
c01cbcf modify dgps_age type
cd27e72 Merge pull request RIOT-OS#29 from swilson/master
4d97109 Fix compiler warnings.
0456bbb Define timegm
04f1141 Add TI-RTOS compat header
8e4fc4e README.md: formatting fixes
0b02771 minmea.h: add Windows compatibility layer
ded4faf Merge pull request RIOT-OS#25 from asund/master
f50449e Fixup whitespace
80af9b4 * Arrange year interpretation in order of likeliness * Add unit tests
ef8bca7 clarity of century use in struct tm
486da2b Small fixes to minmea_gettime * Handle four digit years provided by ZDA in minmea_gettime * Assume GPS epoch to allow dates prior 2000 to be parsed
geromueller pushed a commit to geromueller/RIOT that referenced this issue Jun 19, 2019
$ git log --oneline dbf51f03c5058746b4c4b3d6fdcd3d0357c5da36..HEAD
ae4dd94 Merge pull request RIOT-OS#38 from noahp/noahp/check-url
b1371aa 🔗 update Check link
65bf740 Merge pull request RIOT-OS#35 from gdpinchina/master
61c6ef7 fix test for gga
4514f6d fix test for gga
113221d fix test for gga
35b00bc fix test in gga
9fcd245 remove indent
59c3e0a fix gga char alignment problem in test.c
79b964a modefy initialization for dgps_age
c4a5a01 modify dgps_age type
c01cbcf modify dgps_age type
cd27e72 Merge pull request RIOT-OS#29 from swilson/master
4d97109 Fix compiler warnings.
0456bbb Define timegm
04f1141 Add TI-RTOS compat header
8e4fc4e README.md: formatting fixes
0b02771 minmea.h: add Windows compatibility layer
ded4faf Merge pull request RIOT-OS#25 from asund/master
f50449e Fixup whitespace
80af9b4 * Arrange year interpretation in order of likeliness * Add unit tests
ef8bca7 clarity of century use in struct tm
486da2b Small fixes to minmea_gettime * Handle four digit years provided by ZDA in minmea_gettime * Assume GPS epoch to allow dates prior 2000 to be parsed
eduazocar pushed a commit to eduazocar/RIOT that referenced this issue Jul 1, 2022
chrysn pushed a commit to chrysn-pull-requests/RIOT that referenced this issue Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

No branches or pull requests

1 participant