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

Side by Side Diff: source/libvpx/vpx_mem/vpx_mem_tracker.c

Issue 11974002: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vpx_mem/vpx_mem.h ('k') | source/libvpx/vpx_ports/arm_cpudetect.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 11
12 /* 12 /*
13 vpx_mem_tracker.c 13 vpx_mem_tracker.c
14 14
15 jwz 2003-09-30: 15 jwz 2003-09-30:
16 Stores a list of addreses, their size, and file and line they came from. 16 Stores a list of addreses, their size, and file and line they came from.
17 All exposed lib functions are prefaced by vpx_ and allow the global list 17 All exposed lib functions are prefaced by vpx_ and allow the global list
18 to be thread safe. 18 to be thread safe.
19 Current supported platforms are: 19 Current supported platforms are:
20 Linux, Win32, win_ce and vx_works 20 Linux, Win32, win_ce and vx_works
21 Further support can be added by defining the platform specific mutex 21 Further support can be added by defining the platform specific mutex
22 in the memory_tracker struct as well as calls to create/destroy/lock/unlock 22 in the memory_tracker struct as well as calls to create/destroy/lock/unlock
23 the mutex in vpx_memory_tracker_init/Destroy and memory_tracker_lock_mutex/un lock_mutex 23 the mutex in vpx_memory_tracker_init/Destroy and memory_tracker_lock_mutex/un lock_mutex
24 */ 24 */
25 #include "vpx_ports/config.h" 25 #include "./vpx_config.h"
26 26
27 #if defined(__uClinux__) 27 #if defined(__uClinux__)
28 # include <lddk.h> 28 # include <lddk.h>
29 #endif 29 #endif
30 30
31 #if HAVE_PTHREAD_H 31 #if HAVE_PTHREAD_H
32 # include <pthread.h> 32 # include <pthread.h>
33 #elif defined(WIN32) || defined(_WIN32_WCE) 33 #elif defined(WIN32) || defined(_WIN32_WCE)
34 # define WIN32_LEAN_AND_MEAN 34 # define WIN32_LEAN_AND_MEAN
35 # include <windows.h> 35 # include <windows.h>
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 (void)g_malloc_l; 731 (void)g_malloc_l;
732 (void)g_calloc_l; 732 (void)g_calloc_l;
733 (void)g_realloc_l; 733 (void)g_realloc_l;
734 (void)g_free_l; 734 (void)g_free_l;
735 (void)g_memcpy_l; 735 (void)g_memcpy_l;
736 (void)g_memset_l; 736 (void)g_memset_l;
737 (void)g_memmove_l; 737 (void)g_memmove_l;
738 return -1; 738 return -1;
739 #endif 739 #endif
740 } 740 }
OLDNEW
« no previous file with comments | « source/libvpx/vpx_mem/vpx_mem.h ('k') | source/libvpx/vpx_ports/arm_cpudetect.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698