First time here? Check out the FAQ!
in this line myData pushed_data = *((myData*)&userdata); should change to myData pushed_data = *((myData*)userd