Skip to content

sema: pre-set timeout-timer for sema_wait_timed_msg()#4374

Merged
OlegHahm merged 2 commits intoRIOT-OS:masterfrom
miri64:sema/fix/timer-pre-set
Jan 26, 2016
Merged

sema: pre-set timeout-timer for sema_wait_timed_msg()#4374
OlegHahm merged 2 commits intoRIOT-OS:masterfrom
miri64:sema/fix/timer-pre-set

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Dec 1, 2015

Work-around to prevent weird errors from happening due to #4372.

@miri64 miri64 added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label Dec 1, 2015
@miri64 miri64 added this to the Release 2015.12 milestone Dec 1, 2015
@OlegHahm
Copy link
Copy Markdown
Member

OlegHahm commented Dec 1, 2015

Shouldn't this be fixed in xtimer instead?

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Dec 1, 2015

I don't know how :(

@OlegHahm OlegHahm modified the milestones: Release 2015.12, Release 2016.03 Dec 8, 2015
@miri64 miri64 force-pushed the sema/fix/timer-pre-set branch from 14e2007 to 47a2df7 Compare January 23, 2016 15:35
@miri64 miri64 added Community: Hack'n'ACK candidate This PR is a candidate for review and discussion during one of RIOT's monthly Hack'n'ACK parties CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 23, 2016
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jan 23, 2016

In the long-run it is more correct to set this values anyway, I guess.

@miri64 miri64 assigned kaspar030 and unassigned OlegHahm Jan 25, 2016
@josephnoir
Copy link
Copy Markdown
Contributor

Initialization sounds like a good idea. The style guid doesn't say anything about multiple assignments in one line, is that generally accepted?

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jan 26, 2016

If it doesn't say anything then it is accepted, I guess.

@OlegHahm
Copy link
Copy Markdown
Member

👍 for initialization, but xtimer should be fixed anyway.

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jan 26, 2016

@OlegHahm I'm not sure this CAN be fixed. For all I now, these values might be legally set by some previous msg_set_*() to the timer.

@josephnoir
Copy link
Copy Markdown
Contributor

👍 Looks straight forward. Can't say anything about the xtimer stuff.

OlegHahm added a commit that referenced this pull request Jan 26, 2016
sema: pre-set timeout-timer for sema_wait_timed_msg()
@OlegHahm OlegHahm merged commit a822271 into RIOT-OS:master Jan 26, 2016
@miri64 miri64 deleted the sema/fix/timer-pre-set branch January 26, 2016 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Community: Hack'n'ACK candidate This PR is a candidate for review and discussion during one of RIOT's monthly Hack'n'ACK parties Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants