change @polling to Mutex for thread safety