Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: third_party/libwebp/utils/thread.h

Issue 1546003002: libwebp: update to 0.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 'defines' exists Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2011 Google Inc. All Rights Reserved. 1 // Copyright 2011 Google Inc. All Rights Reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license 3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the COPYING file in the root of the source 4 // that can be found in the COPYING file in the root of the source
5 // tree. An additional intellectual property rights grant can be found 5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may 6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree. 7 // be found in the AUTHORS file in the root of the source tree.
8 // ----------------------------------------------------------------------------- 8 // -----------------------------------------------------------------------------
9 // 9 //
10 // Multi-threaded worker 10 // Multi-threaded worker
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // must call Reset() again. 72 // must call Reset() again.
73 void (*End)(WebPWorker* const worker); 73 void (*End)(WebPWorker* const worker);
74 } WebPWorkerInterface; 74 } WebPWorkerInterface;
75 75
76 // Install a new set of threading functions, overriding the defaults. This 76 // Install a new set of threading functions, overriding the defaults. This
77 // should be done before any workers are started, i.e., before any encoding or 77 // should be done before any workers are started, i.e., before any encoding or
78 // decoding takes place. The contents of the interface struct are copied, it 78 // decoding takes place. The contents of the interface struct are copied, it
79 // is safe to free the corresponding memory after this call. This function is 79 // is safe to free the corresponding memory after this call. This function is
80 // not thread-safe. Return false in case of invalid pointer or methods. 80 // not thread-safe. Return false in case of invalid pointer or methods.
81 WEBP_EXTERN(int) WebPSetWorkerInterface( 81 WEBP_EXTERN(int) WebPSetWorkerInterface(
82 const WebPWorkerInterface* const interface); 82 const WebPWorkerInterface* const winterface);
83 83
84 // Retrieve the currently set thread worker interface. 84 // Retrieve the currently set thread worker interface.
85 WEBP_EXTERN(const WebPWorkerInterface*) WebPGetWorkerInterface(void); 85 WEBP_EXTERN(const WebPWorkerInterface*) WebPGetWorkerInterface(void);
86 86
87 //------------------------------------------------------------------------------ 87 //------------------------------------------------------------------------------
88 88
89 #ifdef __cplusplus 89 #ifdef __cplusplus
90 } // extern "C" 90 } // extern "C"
91 #endif 91 #endif
92 92
93 #endif /* WEBP_UTILS_THREAD_H_ */ 93 #endif /* WEBP_UTILS_THREAD_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698