Whitespace
This commit is contained in:
parent
20ea37b336
commit
7f8e302a6a
|
@ -39,7 +39,7 @@ private:
|
|||
// private and undefined to disable copying
|
||||
boxed_region(const boxed_region& rhs);
|
||||
boxed_region& operator=(const boxed_region& rhs);
|
||||
|
||||
|
||||
public:
|
||||
boxed_region(rust_env *e, memory_region *br)
|
||||
: env(e)
|
||||
|
|
|
@ -39,7 +39,7 @@ private:
|
|||
// private and undefined to disable copying
|
||||
circular_buffer(const circular_buffer& rhs);
|
||||
circular_buffer& operator=(const circular_buffer& rhs);
|
||||
|
||||
|
||||
private:
|
||||
size_t initial_size();
|
||||
void grow();
|
||||
|
|
|
@ -73,7 +73,7 @@ private:
|
|||
// private and undefined to disable copying
|
||||
memory_region(const memory_region& rhs);
|
||||
memory_region& operator=(const memory_region& rhs);
|
||||
|
||||
|
||||
public:
|
||||
memory_region(rust_env *env, bool synchronized);
|
||||
memory_region(memory_region *parent);
|
||||
|
|
|
@ -27,7 +27,7 @@ private:
|
|||
// private and undefined to disable copying
|
||||
rust_sched_launcher(const rust_sched_launcher& rhs);
|
||||
rust_sched_launcher& operator=(const rust_sched_launcher& rhs);
|
||||
|
||||
|
||||
protected:
|
||||
rust_sched_driver driver;
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ private:
|
|||
// private and undefined to disable copying
|
||||
rust_sched_loop(const rust_sched_loop& rhs);
|
||||
rust_sched_loop& operator=(const rust_sched_loop& rhs);
|
||||
|
||||
|
||||
public:
|
||||
rust_kernel *kernel;
|
||||
rust_scheduler *sched;
|
||||
|
|
|
@ -62,7 +62,7 @@ private:
|
|||
// private and undefined to disable copying
|
||||
rust_scheduler(const rust_scheduler& rhs);
|
||||
rust_scheduler& operator=(const rust_scheduler& rhs);
|
||||
|
||||
|
||||
public:
|
||||
rust_scheduler(rust_kernel *kernel, size_t max_num_threads,
|
||||
rust_sched_id id, bool allow_exit, bool killed,
|
||||
|
|
|
@ -309,7 +309,7 @@ private:
|
|||
// private and undefined to disable copying
|
||||
rust_task(const rust_task& rhs);
|
||||
rust_task& operator=(const rust_task& rhs);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// 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;
|
||||
void* buffer = realloc(_data, new_capacity * sizeof(T));
|
||||
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();
|
||||
}
|
||||
_data = (T *) buffer;
|
||||
|
|
Loading…
Reference in New Issue