Whitespace
This commit is contained in:
parent
20ea37b336
commit
7f8e302a6a
|
@ -39,7 +39,7 @@ private:
|
||||||
// private and undefined to disable copying
|
// private and undefined to disable copying
|
||||||
boxed_region(const boxed_region& rhs);
|
boxed_region(const boxed_region& rhs);
|
||||||
boxed_region& operator=(const boxed_region& rhs);
|
boxed_region& operator=(const boxed_region& rhs);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
boxed_region(rust_env *e, memory_region *br)
|
boxed_region(rust_env *e, memory_region *br)
|
||||||
: env(e)
|
: env(e)
|
||||||
|
|
|
@ -39,7 +39,7 @@ private:
|
||||||
// private and undefined to disable copying
|
// private and undefined to disable copying
|
||||||
circular_buffer(const circular_buffer& rhs);
|
circular_buffer(const circular_buffer& rhs);
|
||||||
circular_buffer& operator=(const circular_buffer& rhs);
|
circular_buffer& operator=(const circular_buffer& rhs);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
size_t initial_size();
|
size_t initial_size();
|
||||||
void grow();
|
void grow();
|
||||||
|
|
|
@ -73,7 +73,7 @@ private:
|
||||||
// private and undefined to disable copying
|
// private and undefined to disable copying
|
||||||
memory_region(const memory_region& rhs);
|
memory_region(const memory_region& rhs);
|
||||||
memory_region& operator=(const memory_region& rhs);
|
memory_region& operator=(const memory_region& rhs);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
memory_region(rust_env *env, bool synchronized);
|
memory_region(rust_env *env, bool synchronized);
|
||||||
memory_region(memory_region *parent);
|
memory_region(memory_region *parent);
|
||||||
|
|
|
@ -27,7 +27,7 @@ private:
|
||||||
// private and undefined to disable copying
|
// private and undefined to disable copying
|
||||||
rust_sched_launcher(const rust_sched_launcher& rhs);
|
rust_sched_launcher(const rust_sched_launcher& rhs);
|
||||||
rust_sched_launcher& operator=(const rust_sched_launcher& rhs);
|
rust_sched_launcher& operator=(const rust_sched_launcher& rhs);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
rust_sched_driver driver;
|
rust_sched_driver driver;
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ private:
|
||||||
// private and undefined to disable copying
|
// private and undefined to disable copying
|
||||||
rust_sched_loop(const rust_sched_loop& rhs);
|
rust_sched_loop(const rust_sched_loop& rhs);
|
||||||
rust_sched_loop& operator=(const rust_sched_loop& rhs);
|
rust_sched_loop& operator=(const rust_sched_loop& rhs);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
rust_kernel *kernel;
|
rust_kernel *kernel;
|
||||||
rust_scheduler *sched;
|
rust_scheduler *sched;
|
||||||
|
|
|
@ -62,7 +62,7 @@ private:
|
||||||
// private and undefined to disable copying
|
// private and undefined to disable copying
|
||||||
rust_scheduler(const rust_scheduler& rhs);
|
rust_scheduler(const rust_scheduler& rhs);
|
||||||
rust_scheduler& operator=(const rust_scheduler& rhs);
|
rust_scheduler& operator=(const rust_scheduler& rhs);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
rust_scheduler(rust_kernel *kernel, size_t max_num_threads,
|
rust_scheduler(rust_kernel *kernel, size_t max_num_threads,
|
||||||
rust_sched_id id, bool allow_exit, bool killed,
|
rust_sched_id id, bool allow_exit, bool killed,
|
||||||
|
|
|
@ -309,7 +309,7 @@ private:
|
||||||
// private and undefined to disable copying
|
// private and undefined to disable copying
|
||||||
rust_task(const rust_task& rhs);
|
rust_task(const rust_task& rhs);
|
||||||
rust_task& operator=(const rust_task& rhs);
|
rust_task& operator=(const rust_task& rhs);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Only a pointer to 'name' is kept, so it must live as long as this task.
|
// Only a pointer to 'name' is kept, so it must live as long as this task.
|
||||||
|
|
|
@ -73,7 +73,10 @@ array_list<T>::push(T value) {
|
||||||
size_t new_capacity = _capacity * 2;
|
size_t new_capacity = _capacity * 2;
|
||||||
void* buffer = realloc(_data, new_capacity * sizeof(T));
|
void* buffer = realloc(_data, new_capacity * sizeof(T));
|
||||||
if (buffer == NULL) {
|
if (buffer == NULL) {
|
||||||
fprintf(stderr, "array_list::push> Out of memory allocating %ld bytes", (long int) (new_capacity * sizeof(T)));
|
fprintf(stderr,
|
||||||
|
"array_list::push> "
|
||||||
|
"Out of memory allocating %ld bytes",
|
||||||
|
(long int) (new_capacity * sizeof(T)));
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
_data = (T *) buffer;
|
_data = (T *) buffer;
|
||||||
|
|
Loading…
Reference in New Issue