commit pt_sync, semaphore

pt_sync functions changed to lmint_t from void

test of sem_post and sem_wait in SR_hub and Data_Thread for closing
connections
Merge branch 'Development'