diff options
author | Jürg Billeter <j@bitron.ch> | 2010-07-16 23:34:11 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-07-17 00:00:04 +0200 |
commit | cf8204cb9c6054d42edd8129cc082167d6ca0a01 (patch) | |
tree | 29e9d923484610a95135444366d0d5589f517898 /ccode/valaccodedeclaration.vala | |
parent | c8b366a4ba7d424b23dc0ecf9097707b6d7ce79c (diff) | |
download | vala-cf8204cb9c6054d42edd8129cc082167d6ca0a01.tar.gz |
dova: Add support for [ThreadLocal] fields
Diffstat (limited to 'ccode/valaccodedeclaration.vala')
-rw-r--r-- | ccode/valaccodedeclaration.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ccode/valaccodedeclaration.vala b/ccode/valaccodedeclaration.vala index 556174e65..95216f815 100644 --- a/ccode/valaccodedeclaration.vala +++ b/ccode/valaccodedeclaration.vala @@ -1,6 +1,6 @@ /* valaccodedeclaration.vala * - * Copyright (C) 2006-2008 Jürg Billeter + * Copyright (C) 2006-2010 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -82,6 +82,9 @@ public class Vala.CCodeDeclaration : CCodeStatement { if ((modifiers & CCodeModifiers.EXTERN) != 0 && !has_initializer ()) { writer.write_string ("extern "); } + if ((modifiers & CCodeModifiers.THREAD_LOCAL) != 0) { + writer.write_string ("thread_local "); + } writer.write_string (type_name); writer.write_string (" "); |