Browse files

Add a note about reentrancy with FFTW

  • Loading branch information...
1 parent 8187d88 commit 03250c48cc84eedad971b2756caedb46820cebfc @lalinsky lalinsky committed Jun 20, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/chromaprint.h
View
8 src/chromaprint.h
@@ -66,6 +66,10 @@ CHROMAPRINT_API const char *chromaprint_get_version(void);
/**
* Allocate and initialize the Chromaprint context.
*
+ * Note that when Chromaprint is compiled with FFTW, this function is
+ * not reentrant and you need to call it only from one thread at a time.
+ * This is not a problem when using FFmpeg or vDSP.
+ *
* Parameters:
* - version: Version of the fingerprint algorithm, use
* CHROMAPRINT_ALGORITHM_DEFAULT for the default
@@ -79,6 +83,10 @@ CHROMAPRINT_API ChromaprintContext *chromaprint_new(int algorithm);
/**
* Deallocate the Chromaprint context.
*
+ * Note that when Chromaprint is compiled with FFTW, this function is
+ * not reentrant and you need to call it only from one thread at a time.
+ * This is not a problem when using FFmpeg or vDSP.
+ *
* Parameters:
* - ctx: Chromaprint context pointer
*/

0 comments on commit 03250c4

Please sign in to comment.