2010-05-21 00:10:45 -07:00
|
|
|
#ifndef _EVAS_FONT_PRIVATE_H
|
2010-05-30 20:31:49 -07:00
|
|
|
# define _EVAS_FONT_PRIVATE_H
|
2010-05-21 00:10:45 -07:00
|
|
|
|
2010-05-30 20:31:49 -07:00
|
|
|
#ifdef BUILD_PTHREAD
|
|
|
|
extern LK(lock_font_draw); // for freetype2 API calls
|
2010-09-01 06:15:04 -07:00
|
|
|
extern LK(lock_bidi); // for fribidi API calls
|
2010-05-21 00:10:45 -07:00
|
|
|
#endif
|
|
|
|
|
2010-07-20 05:09:46 -07:00
|
|
|
# if defined(EVAS_FRAME_QUEUING) || defined(BUILD_PIPE_RENDER)
|
2010-05-30 20:31:49 -07:00
|
|
|
# define FTLOCK() LKL(lock_font_draw)
|
|
|
|
# define FTUNLOCK() LKU(lock_font_draw)
|
2010-05-21 00:10:45 -07:00
|
|
|
|
2010-09-01 06:15:04 -07:00
|
|
|
# define BIDILOCK() LKL(lock_bidi)
|
|
|
|
# define BIDIUNLOCK() LKU(lock_bidi)
|
2010-05-30 20:31:49 -07:00
|
|
|
# else
|
|
|
|
# define FTLOCK(x)
|
|
|
|
# define FTUNLOCK(x)
|
2010-05-21 00:10:45 -07:00
|
|
|
|
2010-09-01 06:15:04 -07:00
|
|
|
# define BIDILOCK()
|
|
|
|
# define BIDIUNLOCK()
|
2010-05-30 20:31:49 -07:00
|
|
|
# endif
|
2010-05-21 00:10:45 -07:00
|
|
|
|
|
|
|
#endif /* !_EVAS_FONT_PRIVATE_H */
|