diff options
author | waker <wakeroid@gmail.com> | 2011-03-26 18:55:27 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-03-26 18:55:27 +0100 |
commit | 5b0f06ac3bff40b5f9bf5394b317a38858c745e6 (patch) | |
tree | ded81f5ca1d5d15952f146e910be7c15633ae0db /deadbeef.h | |
parent | 6a80471a8396633460c2f91bc71c9f005171aee8 (diff) |
added comment about pl_find_meta thread-safety issues
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -451,7 +451,11 @@ typedef struct { void (*pl_set_meta_int) (DB_playItem_t *it, const char *key, int value); void (*pl_set_meta_float) (DB_playItem_t *it, const char *key, float value); void (*pl_delete_meta) (DB_playItem_t *it, const char *key); + + // this function is not thread-safe + // make sure you put it into pl_lock/unlock block const char *(*pl_find_meta) (DB_playItem_t *it, const char *key); + int (*pl_find_meta_int) (DB_playItem_t *it, const char *key, int def); float (*pl_find_meta_float) (DB_playItem_t *it, const char *key, float def); void (*pl_replace_meta) (DB_playItem_t *it, const char *key, const char *value); |