From 24a81fbd44393b109828940f2cebc4644f1f7ba8 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 14 Jan 2010 17:19:43 -0300 Subject: Adds OverloadData::hasAllowThread() method. The method checks if any of the functions in OverloadData have allow-thread flag set to true. --- overloaddata.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'overloaddata.cpp') diff --git a/overloaddata.cpp b/overloaddata.cpp index c54945c5c..7b23730a6 100644 --- a/overloaddata.cpp +++ b/overloaddata.cpp @@ -245,6 +245,15 @@ bool OverloadData::hasVarargs() const return false; } +bool OverloadData::hasAllowThread() const +{ + foreach (const AbstractMetaFunction* func, m_overloads) { + if (func->allowThread()) + return true; + } + return false; +} + const AbstractMetaFunction* OverloadData::referenceFunction() const { return m_overloads.first(); -- cgit v1.2.3