summaryrefslogtreecommitdiff
path: root/src/M2Crypto/threading.py
blob: f9f26839e59e184f0c88d3fa4de6817db5a1418e (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
from __future__ import absolute_import

"""
M2Crypto threading support, required for multithreaded applications.

Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved."""

# M2Crypto
from M2Crypto import m2


def init():
    # type: () -> None
    """
    Initialize threading support.
    """
    m2.threading_init()


def cleanup():
    # type: () -> None
    """
    End and cleanup threading support.
    """
    m2.threading_cleanup()