HIV is not transmitted in the way you described your sexual adventure!!
(pay attention to the double exclamation marks)
Even without protecctive gloves, there is never any risk of HIV from mutual masturbation. With gloves (latex or otherwise) for sure no risk at all.
You've had several questions about obviously zero risk situations. If you don't have unprotected sex (penis inside another person's vagina or rectum, without a condom), you will never catch HIV. That's all you need to know. There is no point about asking more questions about any other kind of exposure. The anwers on this forum will continue to be the same boring ones you get every time: no risk!