[modify] add pdf and pthread_cancel.

Signed-off-by: Cedar Li <china.cedar.li@gmail.com>