It seems to me that the following sequence:

Thread1:
Code :
             wfdAnyFunction1( );  // Any arbitrary wfd function call
             errorCode1 = wfdGetError( device );
Thread2:
Code :
             wfdAnyFunction2( );  // Any arbitrary wfd function call
             errorCode2 = wfdGetError( device );
is NOT thread safe when threads are using the same device.
Itís possible that the value of errorCode1 could actually belong to Thread2 or the errorCode2 value could belong to Thread1.
Am I missing something? Is the WFD client required to serialize access to the WFD driver to ensure error codes are correctly interpreted?