add thread synchronise function
add thread synchronise function

Ignore-this: 51b95fb4baeaede26439598a1e6d05a1

darcs-hash:20090720021919-115f9-afeaffebb6cb620dda2e12c4622d9dc853b6618c.gz

phaazon/cuda,phaazon/cuda,mwu-tow/cuda,phaazon/cuda