Experimental deadlock detection code

This commit is contained in:
Richard Frith-Macdonald 2018-03-26 15:20:48 +01:00
parent 43673452a5
commit 05439fe15d
6 changed files with 671 additions and 66 deletions

View file

@ -599,6 +599,14 @@ NSUInteger
GSPrivateThreadID()
GS_ATTRIB_PRIVATE;
/* Used by NSThread.m to inform NSLock.m that normal locks should be
* traced (and therefore call private NSThread methods to perform the
* tracing.
*/
void
GSPrivateTraceLocks(BOOL aFlag)
GS_ATTRIB_PRIVATE;
/** Function to base64 encode data. The destination buffer must be of
* size (((length + 2) / 3) * 4) or more.
*/
@ -606,6 +614,5 @@ void
GSPrivateEncodeBase64(const uint8_t *src, NSUInteger length, uint8_t *dst)
GS_ATTRIB_PRIVATE;
#endif /* _GSPrivate_h_ */