function for post task to IOCP