X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=libserialport.h.in;fp=libserialport.h.in;h=c8defbed5c363bcf9c7e0245e475e9aeaa58906c;hb=ec4b55ae25c368e30a5db6ab6cb33bb6abeca46c;hp=a4bd00e5b2f634bdfec71eb7f0267ce15e3ae31a;hpb=46d8b0a039965cf68fb27a3b88b3c23a1e34d912;p=libserialport.git diff --git a/libserialport.h.in b/libserialport.h.in index a4bd00e..c8defbe 100644 --- a/libserialport.h.in +++ b/libserialport.h.in @@ -1335,6 +1335,8 @@ enum sp_return sp_end_break(struct sp_port *port); * * In order to obtain the correct result, this function should be called * straight after the failure, before executing any other system operations. + * The result is thread-specific, and only valid when called immediately + * after a previous call returning SP_ERR_FAIL. * * @return The system's numeric code for the error that caused the last * operation to fail. @@ -1348,6 +1350,8 @@ int sp_last_error_code(void); * * In order to obtain the correct result, this function should be called * straight after the failure, before executing other system operations. + * The result is thread-specific, and only valid when called immediately + * after a previous call returning SP_ERR_FAIL. * * @return The system's message for the error that caused the last * operation to fail. This string may be allocated by the function,