OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 std::unique_ptr<Function<base::MakeUnboundRunType<FunctionType, BoundParameters.
..>, SameThreadAffinity>> bind(FunctionType function, BoundParameters&&... bound
Parameters) | 260 std::unique_ptr<Function<base::MakeUnboundRunType<FunctionType, BoundParameters.
..>, SameThreadAffinity>> bind(FunctionType function, BoundParameters&&... bound
Parameters) |
261 { | 261 { |
262 return bindInternal<SameThreadAffinity>(function, std::forward<BoundParamete
rs>(boundParameters)...); | 262 return bindInternal<SameThreadAffinity>(function, std::forward<BoundParamete
rs>(boundParameters)...); |
263 } | 263 } |
264 | 264 |
265 typedef Function<void(), SameThreadAffinity> SameThreadClosure; | 265 typedef Function<void(), SameThreadAffinity> SameThreadClosure; |
266 typedef Function<void(), CrossThreadAffinity> CrossThreadClosure; | 266 typedef Function<void(), CrossThreadAffinity> CrossThreadClosure; |
267 | 267 |
268 } // namespace WTF | 268 } // namespace WTF |
269 | 269 |
270 using WTF::bind; | |
271 | |
272 using WTF::passed; | 270 using WTF::passed; |
273 using WTF::unretained; | 271 using WTF::unretained; |
274 using WTF::crossThreadUnretained; | 272 using WTF::crossThreadUnretained; |
275 | 273 |
276 using WTF::Function; | 274 using WTF::Function; |
277 using WTF::SameThreadClosure; | 275 using WTF::SameThreadClosure; |
278 using WTF::CrossThreadClosure; | 276 using WTF::CrossThreadClosure; |
279 | 277 |
280 #endif // WTF_Functional_h | 278 #endif // WTF_Functional_h |
OLD | NEW |