mirror of
https://gitee.com/openharmony/third_party_cups
synced 2024-11-23 09:59:45 +00:00
update pthread_cancel.patch.
Signed-off-by: dongzhengkuan <dongzhengkuan@huawei.com>
This commit is contained in:
parent
d5961f92a8
commit
339ad4786c
@ -3,9 +3,11 @@ index 0e01cbf..7898312 100644
|
|||||||
--- a/cups/thread.c
|
--- a/cups/thread.c
|
||||||
+++ b/cups/thread.c
|
+++ b/cups/thread.c
|
||||||
@@ -154,7 +154,7 @@ _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */
|
@@ -154,7 +154,7 @@ _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */
|
||||||
void
|
void
|
||||||
_cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */
|
_cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */
|
||||||
{
|
{
|
||||||
- pthread_cancel(thread);
|
- pthread_cancel(thread);
|
||||||
+ pthread_kill(thread, 10);
|
+ pthread_kill(thread, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user