diff options
| author | Michael Sullivan <sully@msully.net> | 2012-07-17 16:31:19 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-07-17 17:09:25 -0700 |
| commit | aa5b5ab886475b91ba86a3762e46d0cda2abf2ad (patch) | |
| tree | bb8b1d3e7f15f0592769eb8bfee5d90ec89247d1 /src/rt/rust_builtin.cpp | |
| parent | 8e6d66280f7824e24021a15c7075ecdfbfd19b28 (diff) | |
| download | rust-aa5b5ab886475b91ba86a3762e46d0cda2abf2ad.tar.gz rust-aa5b5ab886475b91ba86a3762e46d0cda2abf2ad.zip | |
Create some infrastructure for building up @-vectors. Work on #2921.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 001fcd6198b..4975bbf0354 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -134,6 +134,14 @@ unsupervise() { } extern "C" CDECL void +vec_reserve_shared_actual(type_desc* ty, rust_vec_box** vp, + size_t n_elts) { + rust_task *task = rust_get_current_task(); + reserve_vec_exact_shared(task, vp, n_elts * ty->size); +} + +// This is completely misnamed. +extern "C" CDECL void vec_reserve_shared(type_desc* ty, rust_vec_box** vp, size_t n_elts) { rust_task *task = rust_get_current_task(); |
