third_party_cups/ohos-modify-pthread.patch
dongzhengkuan f8f5358b2e add tls protocol Signed-off-by:dongzhengkuan@huawei.com
Signed-off-by: dongzhengkuan <dongzhengkuan@huawei.com>
2023-08-14 15:57:28 +08:00

13 lines
332 B
Diff

diff --git a/cups/thread.c b/cups/thread.c
index 0e01cbf..7898312 100644
--- a/cups/thread.c
+++ b/cups/thread.c
@@ -154,7 +154,7 @@ _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */
void
_cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */
{
- pthread_cancel(thread);
+ pthread_kill(thread, 10);
}