File: threading.py

package info (click to toggle)
m2crypto 0.21.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,416 kB
  • sloc: python: 19,564; makefile: 21; ansic: 18; sh: 17
file content (20 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
M2Crypto threading support, required for multithreaded applications. 

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

# M2Crypto
import m2

def init():
    """
    Initialize threading support.
    """
    m2.threading_init()

def cleanup():
    """
    End and cleanup threading support.
    """
    m2.threading_cleanup()