The most effective way that I've found is to push your boner to the side, if that makes sense. The problem with this is that you gotta hide the act of pushing your boner to the side.
What's a better way? Don't you dare say folding your arms...
-
Depending on which side you have it sitting, you can put your hands in your pockets and push it in between your thighs.