Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-08-19 01:45:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-08-19 01:49:12 +0300
commit7c352ed43af176948f59ebbdd75c35f641d31ba1 (patch)
tree5395505349ed70ced0b9caa7383e422adf9767b0 /source/blender/imbuf/intern/thumbs.c
parent6a5303ab43cee91f6990125a8d5b2dbcdeb8eeac (diff)
Cleanup: style + doxy
Diffstat (limited to 'source/blender/imbuf/intern/thumbs.c')
-rw-r--r--source/blender/imbuf/intern/thumbs.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index 3355f4d9ac5..e7bec7e643c 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -653,7 +653,8 @@ static struct IMBThumbLocks {
ThreadCondition cond;
} thumb_locks = {0};
-void IMB_thumb_locks_acquire(void) {
+void IMB_thumb_locks_acquire(void)
+{
BLI_lock_thread(LOCK_IMAGE);
if (thumb_locks.lock_counter == 0) {
@@ -668,7 +669,8 @@ void IMB_thumb_locks_acquire(void) {
BLI_unlock_thread(LOCK_IMAGE);
}
-void IMB_thumb_locks_release(void) {
+void IMB_thumb_locks_release(void)
+{
BLI_lock_thread(LOCK_IMAGE);
BLI_assert((thumb_locks.locked_paths != NULL) && (thumb_locks.lock_counter > 0));
@@ -682,7 +684,8 @@ void IMB_thumb_locks_release(void) {
BLI_unlock_thread(LOCK_IMAGE);
}
-void IMB_thumb_path_lock(const char *path) {
+void IMB_thumb_path_lock(const char *path)
+{
void *key = BLI_strdup(path);
BLI_lock_thread(LOCK_IMAGE);
@@ -697,7 +700,8 @@ void IMB_thumb_path_lock(const char *path) {
BLI_unlock_thread(LOCK_IMAGE);
}
-void IMB_thumb_path_unlock(const char *path) {
+void IMB_thumb_path_unlock(const char *path)
+{
const void *key = path;
BLI_lock_thread(LOCK_IMAGE);