~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-29 12:04:36 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110329120436-vozkuer8vqgh027p
Always call assert()

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_DRIZZLED_H
22
 
#define DRIZZLED_DRIZZLED_H
 
21
#pragma once
23
22
 
24
23
#include <bitset>
25
24
#include <boost/program_options.hpp>
 
25
#include <boost/detail/atomic_count.hpp>
 
26
#include <drizzled/common_fwd.h>
 
27
#include <drizzled/global_buffer.h>
 
28
#include <drizzled/definitions.h>
26
29
 
27
 
#include "drizzled/atomics.h"
28
 
#include "drizzled/global_buffer.h"
29
 
#include "drizzled/definitions.h"
30
30
struct passwd;
31
31
 
32
 
namespace drizzled
33
 
{
34
 
 
35
 
namespace module
36
 
{
37
 
class Registry;
38
 
}
39
 
 
40
 
extern std::bitset<12> test_flags;
41
 
extern atomic<uint32_t> connection_count;
 
32
namespace drizzled {
 
33
 
 
34
extern boost::detail::atomic_count connection_count;
42
35
extern const char *load_default_groups[];
43
36
extern bool volatile select_thread_in_use;
44
37
extern bool volatile abort_loop;
53
46
extern global_buffer_constraint<uint64_t> global_read_rnd_buffer;
54
47
extern global_buffer_constraint<uint64_t> global_read_buffer;
55
48
 
 
49
extern size_t transaction_message_threshold;
 
50
 
56
51
extern const char * const DRIZZLE_CONFIG_NAME;
57
52
 
58
53
boost::program_options::variables_map &getVariablesMap();
59
54
 
60
55
int init_thread_environment();
61
56
int init_server_components(module::Registry &modules);
62
 
int init_common_variables(int argc, char **argv, module::Registry &modules);
 
57
int init_basic_variables(int argc, char **argv);
 
58
int init_remaining_variables(module::Registry &modules);
63
59
 
64
60
passwd *check_user(const char *user);
65
61
void set_user(const char *user, passwd *user_info_arg);
66
62
void clean_up(bool print_message);
67
 
bool drizzle_rm_tmp_tables();
68
63
 
69
64
} /* namespace drizzled */
70
65
 
71
 
#endif /* DRIZZLED_DRIZZLED_H */