Well I must say that abusing your love in front of others only bodes bad for your relationship. I have to say that if you can abuse him in front of people you certainly can apologize the same way.
You shouldn't need to wait to do it. It should occur to you that you are wrong as soon as you do it and that will give you the opportunity to apologize to let friends know that everything is okay between you two.
Try not to have issues with your spouse when someone else is around, it will only drive the two of you apart.