mirror of
https://gitee.com/openharmony/third_party_cups
synced 2024-11-26 19:40:32 +00:00
f8f5358b2e
Signed-off-by: dongzhengkuan <dongzhengkuan@huawei.com>
13 lines
332 B
Diff
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);
|
|
}
|
|
|
|
|