sanei_thread: Corrected some additional mistakes.

Major review and check is required followed by some extensive testing.
We might also go for a different solution yet but we will see.
sanei_thread_fixup
Ralph Little 2022-08-30 21:05:12 -07:00
rodzic 1fc0928a73
commit 06241f00af
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -141,7 +141,7 @@ extern SANE_Bool sanei_thread_is_valid (SANE_Pid pid);
* For details on the pthread_t type, see in particular Issue 6 of * For details on the pthread_t type, see in particular Issue 6 of
* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html * http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
*/ */
#define sanei_thread_invalidate(sane_pid) ((sane_pid).pid = SANE_FALSE) #define sanei_thread_invalidate(sane_pid) ((sane_pid).is_valid = SANE_FALSE)
/** Initialize a SANE_Pid /** Initialize a SANE_Pid
* *

Wyświetl plik

@ -117,7 +117,7 @@ sanei_thread_is_forked( void )
static void static void
sanei_thread_set_invalid( SANE_Pid *pid ) sanei_thread_set_invalid( SANE_Pid *pid )
{ {
pid->is_valid = SANE_FALSE; sanei_thread_invalidate(*pid);
} }
#endif #endif