I decided to use the "in al, 60h" method; it works, and that's good enough for me

I'm slowly progressing with this thing now, and I found some v sync code by Rbraz:
VSync: mov dx, 03DAh
in al,dx
test al,8
jz VSync
I have no idea why that works. What does "in" actually do?