Changeset 1164
- Timestamp:
- Mar 15, 2012, 12:08:10 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/math/remez.h
r1139 r1164 35 35 void Run(T a, T b, RealFunc *func, RealFunc *weight, int decimals) 36 36 { 37 using std::printf; 38 37 39 m_func = func; 38 40 m_weight = weight; -
trunk/src/platform/ps3/threadbase.h
r1101 r1164 53 53 }; 54 54 55 class QueueBase55 template<typename T, int N> class QueueBase 56 56 { 57 57 public: … … 81 81 } 82 82 83 void Push( intvalue)83 void Push(T value) 84 84 { 85 85 /* FIXME: this is a copy of the pthread implementation, but we … … 97 97 } 98 98 99 intPop()99 T Pop() 100 100 { 101 101 sys_lwmutex_lock(&m_mutex, 0); … … 104 104 sys_lwcond_wait(&m_empty_cond, 0); 105 105 m_poppers--; 106 intret = m_values[m_start];106 T ret = m_values[m_start]; 107 107 m_start = (m_start + 1) % CAPACITY; 108 108 m_count--; … … 114 114 115 115 private: 116 static size_t const CAPACITY = 100;117 intm_values[CAPACITY];116 static size_t const CAPACITY = N; 117 T m_values[CAPACITY]; 118 118 size_t m_start, m_count; 119 119 size_t m_poppers, m_pushers;
Note: See TracChangeset
for help on using the changeset viewer.