| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * synergy -- mouse and keyboard sharing utility
|
|---|
| 3 | * Copyright (C) 2002 Chris Schoeneman
|
|---|
| 4 | *
|
|---|
| 5 | * This package is free software; you can redistribute it and/or
|
|---|
| 6 | * modify it under the terms of the GNU General Public License
|
|---|
| 7 | * found in the file COPYING that should have accompanied this file.
|
|---|
| 8 | *
|
|---|
| 9 | * This package is distributed in the hope that it will be useful,
|
|---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 12 | * GNU General Public License for more details.
|
|---|
| 13 | */
|
|---|
| 14 |
|
|---|
| 15 | #include "CFunctionJob.h"
|
|---|
| 16 |
|
|---|
| 17 | //
|
|---|
| 18 | // CFunctionJob
|
|---|
| 19 | //
|
|---|
| 20 |
|
|---|
| 21 | CFunctionJob::CFunctionJob(void (*func)(void*), void* arg) :
|
|---|
| 22 | m_func(func),
|
|---|
| 23 | m_arg(arg)
|
|---|
| 24 | {
|
|---|
| 25 | // do nothing
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | CFunctionJob::~CFunctionJob()
|
|---|
| 29 | {
|
|---|
| 30 | // do nothing
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | void
|
|---|
| 34 | CFunctionJob::run()
|
|---|
| 35 | {
|
|---|
| 36 | if (m_func != NULL) {
|
|---|
| 37 | m_func(m_arg);
|
|---|
| 38 | }
|
|---|
| 39 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.