summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcoro_get_id.cpp
blob: 24ed1fe0c9f3b4e7208126fe0b55d1105b003f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
 * @file   llcoro_get_id.cpp
 * @author Nat Goodspeed
 * @date   2016-09-03
 * @brief  Implementation for llcoro_get_id.
 * 
 * $LicenseInfo:firstyear=2016&license=viewerlgpl$
 * Copyright (c) 2016, Linden Research, Inc.
 * $/LicenseInfo$
 */

// Precompiled header
#include "linden_common.h"
// associated header
#include "llcoro_get_id.h"
// STL headers
// std headers
// external library headers
// other Linden headers
#include "llcoros.h"

namespace llcoro
{

id get_id()
{
    // An instance of Current can convert to LLCoros::CoroData*, which can
    // implicitly convert to void*, which is an llcoro::id.
    return LLCoros::Current();
}

} // llcoro