summaryrefslogtreecommitdiff
path: root/src/vm/mda.inl
blob: 921f9a35bef8db38a35d8970a537f09f4a893931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

template<typename PRODUCT>
PRODUCT* MdaFactory<PRODUCT>::Create()
{
    WRAPPER_NO_CONTRACT;

    if (m_cProduct == MDA_MAX_FACTORY_PRODUCT) 
        return GetNext()->Create();

    return &m_product[m_cProduct++];
}