Skip to content

Instantly share code, notes, and snippets.

@kb10uy
Created August 4, 2014 09:29
Show Gist options
  • Select an option

  • Save kb10uy/d287cf99fcea3e5c16e2 to your computer and use it in GitHub Desktop.

Select an option

Save kb10uy/d287cf99fcea3e5c16e2 to your computer and use it in GitHub Desktop.
//yellow,brownが定義してあるとして
//yが左手、bが右手を上げる動作をさせたい
//raise***はブロッキング、ただし同時にあげる
while(true) {
if (yellow) {
raiseLeftHand();
} else {
raiseRightHand();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment