Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dveeden/udf_gettid
Get Thread Id function for MySQL
https://github.com/dveeden/udf_gettid
Last synced: about 1 month ago
JSON representation
Get Thread Id function for MySQL
- Host: GitHub
- URL: https://github.com/dveeden/udf_gettid
- Owner: dveeden
- License: gpl-2.0
- Created: 2015-06-30T19:42:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-30T19:44:26.000Z (over 9 years ago)
- Last Synced: 2023-03-23T22:11:57.085Z (over 1 year ago)
- Language: C
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Description
===========
An MySQL UDF to get the thread id on Linux. This is useful to move MySQL threads/connections to a Linux cgroup.Installation
============$ gcc -o udf_gettid.so udf_gettid.c `mysql_config --include` -shared -fPIC
mysql> CREATE FUNCTION gettid RETURNS INTEGER SONAME 'udf_gettid.so';
Example
=======mysql> SELECT gettid();
+----------+
| gettid() |
+----------+
| 8877 |
+----------+