diff options
author | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-14 13:14:27 +0000 |
---|---|---|
committer | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-14 13:14:27 +0000 |
commit | ff3209006e18cea3929ab22a052ff5b524f8eb62 (patch) | |
tree | 33ebc1d0c4dd79d49df01737fd6b19d67d044a13 /libitm/retry.cc | |
parent | ef3a70c39560b819a3731adc4079c643aa75c20b (diff) | |
download | gcc-ff3209006e18cea3929ab22a052ff5b524f8eb62.tar.gz |
libitm: Add multi-lock, write-through TM method.
libitm/
* libitm_i.h (GTM::gtm_rwlog_entry): New.
(GTM::gtm_thread): Add read and write logs.
(GTM::dispatch_ml_wt): Declare.
* retry.cc (parse_default_method): Support ml_wt.
* method-ml.cc: New file.
* Makefile.am: Add method-ml.cc.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/retry.cc')
-rw-r--r-- | libitm/retry.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libitm/retry.cc b/libitm/retry.cc index 761a066e834..d59c1834ef0 100644 --- a/libitm/retry.cc +++ b/libitm/retry.cc @@ -199,6 +199,11 @@ parse_default_method() disp = GTM::dispatch_gl_wt(); env += 5; } + else if (strncmp(env, "ml_wt", 5) == 0) + { + disp = GTM::dispatch_ml_wt(); + env += 5; + } else goto unknown; |